Пример #1
0
def get_task_choices():
    from ws import loaders
    from ws.tasks import get_registered_tasks
    loaders.autodiscover()
    for task in get_registered_tasks():
        title = import_task(task).get_title()
        yield (task, title)
Пример #2
0
def get_task_choices():
    from ws import loaders
    from ws.tasks import get_registered_tasks
    loaders.autodiscover()
    for task in get_registered_tasks():
        title = import_task(task).get_title()
        yield (task, title)
Пример #3
0
 def obj(self):
     return import_task(self)