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)
def obj(self): return import_task(self)