diff --git a/weboob/applications/webcontentedit/webcontentedit.py b/weboob/applications/webcontentedit/webcontentedit.py index 083f5f5d..8765b31f 100644 --- a/weboob/applications/webcontentedit/webcontentedit.py +++ b/weboob/applications/webcontentedit/webcontentedit.py @@ -47,7 +47,7 @@ class WebContentEdit(ReplApplication): contents += [content for backend, content in self.do('get_content', _id, backends=backend_names) if content] if len(contents) == 0: - print >>sys.stderr, 'No content for the ID "%s"' % id + print >>sys.stderr, 'No contents found' return 1 paths = {} diff --git a/weboob/tools/application/repl.py b/weboob/tools/application/repl.py index fa0ea71e..86d73424 100644 --- a/weboob/tools/application/repl.py +++ b/weboob/tools/application/repl.py @@ -64,7 +64,13 @@ class ReplApplication(Cmd, BaseApplication): def __init__(self): Cmd.__init__(self) - self.prompt = self.BOLD + '%s> ' % self.APPNAME + self.NC + # XXX can't use bold prompt because: + # 1. it causes problems when trying to get history (lines don't start + # at the right place). + # 2. when typing a line longer than term width, cursor goes at start + # of the same line instead of new line. + #self.prompt = self.BOLD + '%s> ' % self.APPNAME + self.NC + self.prompt = '%s> ' % self.APPNAME self.intro = '\n'.join(('Welcome to %s%s%s v%s' % (self.BOLD, self.APPNAME, self.NC, self.VERSION), '', '%s' % self.COPYRIGHT,