applications: Define std* in the proper class
This would make weboob-debug unusable, for example.
This commit is contained in:
parent
1150e89b65
commit
e9c047ce93
2 changed files with 4 additions and 4 deletions
|
|
@ -100,6 +100,10 @@ class BaseApplication(object):
|
||||||
# Copyright
|
# Copyright
|
||||||
COPYRIGHT = None
|
COPYRIGHT = None
|
||||||
|
|
||||||
|
stdin = sys.stdin
|
||||||
|
stdout = sys.stdout
|
||||||
|
stderr = sys.stderr
|
||||||
|
|
||||||
# ------ Abstract methods --------------------------------------
|
# ------ Abstract methods --------------------------------------
|
||||||
def create_weboob(self):
|
def create_weboob(self):
|
||||||
return Weboob()
|
return Weboob()
|
||||||
|
|
|
||||||
|
|
@ -73,10 +73,6 @@ class ConsoleApplication(BaseApplication):
|
||||||
BOLD = '[1m'
|
BOLD = '[1m'
|
||||||
NC = '[0m' # no color
|
NC = '[0m' # no color
|
||||||
|
|
||||||
stdin = sys.stdin
|
|
||||||
stdout = sys.stdout
|
|
||||||
stderr = sys.stderr
|
|
||||||
|
|
||||||
def __init__(self, option_parser=None):
|
def __init__(self, option_parser=None):
|
||||||
BaseApplication.__init__(self, option_parser)
|
BaseApplication.__init__(self, option_parser)
|
||||||
self.weboob.callbacks['login'] = self.login_cb
|
self.weboob.callbacks['login'] = self.login_cb
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue