add __all__ variable to many modules

This commit is contained in:
Christophe Benz 2010-04-16 18:02:03 +02:00
commit cebcead318
10 changed files with 38 additions and 2 deletions

View file

@ -24,6 +24,10 @@ from optparse import OptionParser
from weboob import Weboob
__all__ = ['BaseApplication']
class BaseApplication(object):
# Application name
APPNAME = ''

View file

@ -26,6 +26,10 @@ from weboob.modules import BackendsConfig
from .base import BaseApplication
__all__ = ['ConsoleApplication']
class ConsoleApplication(BaseApplication):
def __init__(self):
try:

View file

@ -28,6 +28,10 @@ from weboob.scheduler import Scheduler
from .console import ConsoleApplication
__all__ = ['PromptApplication']
class PromptScheduler(Scheduler):
def __init__(self, prompt_cb, read_cb):
self.scheduler = sched.scheduler(time.time, self.sleep)