Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
177
Issues
177
List
Boards
Labels
Milestones
Merge Requests
49
Merge Requests
49
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weboob
weboob
Commits
6897446a
Commit
6897446a
authored
Feb 11, 2016
by
Romain Bignon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch ^C
parent
e04fea66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
scripts/weboob
scripts/weboob
+6
-3
No files found.
scripts/weboob
View file @
6897446a
...
...
@@ -37,7 +37,7 @@ class Weboob(ConsoleApplication):
UPDATE_DAYS_DELAY
=
20
def
__init__
(
self
):
ConsoleApplication
.
__init__
(
self
)
super
(
Weboob
,
self
)
.
__init__
(
)
self
.
update
()
capApplicationDict
=
self
.
init_CapApplicationDict
()
...
...
@@ -127,7 +127,7 @@ class Weboob(ConsoleApplication):
return
OrderedDict
([(
k
,
v
)
for
k
,
v
in
sorted
(
capApplicationDict
.
iteritems
())])
def
get_application_capabilities
(
self
,
application
):
if
'CAPS'
in
dir
(
application
)
and
application
.
CAPS
:
if
hasattr
(
application
,
'CAPS'
)
and
application
.
CAPS
:
_capabilities
=
list
(
application
.
CAPS
)
if
isinstance
(
application
.
CAPS
,
tuple
)
else
[
application
.
CAPS
]
return
[
os
.
path
.
splitext
(
os
.
path
.
basename
(
inspect
.
getfile
(
x
)))[
0
]
for
x
in
_capabilities
]
...
...
@@ -144,4 +144,7 @@ class Weboob(ConsoleApplication):
if
__name__
==
'__main__'
:
Weboob
()
try
:
Weboob
()
except
KeyboardInterrupt
:
print
(
''
)
Write
Preview
Markdown
is supported
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