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
175
Issues
175
List
Boards
Labels
Milestones
Merge Requests
48
Merge Requests
48
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
92730c28
Commit
92730c28
authored
Mar 03, 2019
by
Vincent A
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
weboob.tools.application: use more docstring instead of comments
X-Target-Branch: argparse
parent
ad3924e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
10 deletions
+18
-10
weboob/tools/application/base.py
weboob/tools/application/base.py
+17
-9
weboob/tools/application/repl.py
weboob/tools/application/repl.py
+1
-1
No files found.
weboob/tools/application/base.py
View file @
92730c28
...
...
@@ -85,25 +85,33 @@ class Application(object):
# ------ Class attributes --------------------------------------
# Application name
APPNAME
=
''
# Configuration and work directory (if None, use the Weboob instance one)
"""Application name"""
CONFDIR
=
None
# Default configuration dict (can only contain key/values)
"""Configuration and work directory (if None, use the Weboob instance one)"""
CONFIG
=
{}
# Default storage tree
"""Default configuration dict (can only contain key/values)"""
STORAGE
=
{}
# Synopsis
"""Default storage tree"""
SYNOPSIS
=
'Usage:
%
prog [-h] [-dqv] [-b backends] ...
\n
'
SYNOPSIS
+=
'
%
prog [--help] [--version]'
# Description
"""Synopsis"""
DESCRIPTION
=
None
# Version
"""Description"""
VERSION
=
None
# Copyright
"""Version"""
COPYRIGHT
=
None
# Verbosity of DEBUG
"""Copyright"""
DEBUG_FILTER
=
2
"""Verbosity of DEBUG"""
stdin
=
sys
.
stdin
stdout
=
sys
.
stdout
...
...
weboob/tools/application/repl.py
View file @
92730c28
...
...
@@ -121,8 +121,8 @@ class ReplApplication(ConsoleApplication, MyCmd):
DEFAULT_FORMATTER
=
'multiline'
COMMANDS_FORMATTERS
=
{}
# Objects to allow in do_ls / do_cd
COLLECTION_OBJECTS
=
tuple
()
"""Objects to allow in do_ls / do_cd"""
weboob_commands
=
set
([
'backends'
,
'condition'
,
'count'
,
'formatter'
,
'logging'
,
'select'
,
'quit'
,
'ls'
,
'cd'
])
hidden_commands
=
set
([
'EOF'
])
...
...
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