Commit 92730c28 authored by ntome's avatar ntome

weboob.tools.application: use more docstring instead of comments

X-Target-Branch: argparse
parent ad3924e5
......@@ -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
......
......@@ -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'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment