예제 #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)