Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nicolas Frandeboeuf
kresus
Commits
9e454597
Commit
9e454597
authored
May 01, 2017
by
ZeHiro
Committed by
ZeHiro
May 03, 2017
Browse files
Use DummyProgress also for update. Fixes #566
parent
79b0bfa8
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/weboob/main.py
View file @
9e454597
...
...
@@ -49,6 +49,12 @@ with file(err_path) as f:
INVALID_PARAMETERS
=
j
[
'INVALID_PARAMETERS'
]
NO_ACCOUNTS
=
j
[
'NO_ACCOUNTS'
]
# Careful: this is extracted from weboob's code.
# Install the module if necessary and hide the progress.
class
DummyProgress
:
def
progress
(
self
,
a
,
b
):
pass
class
Connector
(
object
):
'''
Connector is a tool that connects to common websites like bank website,
...
...
@@ -83,7 +89,7 @@ class Connector(object):
@
staticmethod
def
update
(
retry
=
False
):
try
:
return
Connector
.
weboob
().
update
()
return
Connector
.
weboob
().
update
(
progress
=
DummyProgress
()
)
except
Exception
as
e
:
if
retry
:
raise
e
...
...
@@ -99,12 +105,6 @@ class Connector(object):
'''
self
.
weboob
=
Connector
.
weboob
()
# Careful: this is extracted from weboob's code.
# Install the module if necessary and hide the progress.
class
DummyProgress
:
def
progress
(
self
,
a
,
b
):
pass
repositories
=
self
.
weboob
.
repositories
minfo
=
repositories
.
get_module_info
(
modulename
)
if
minfo
is
not
None
and
not
minfo
.
is_installed
():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment