genui.utils.extensions.tasks package

Subpackages

Submodules

genui.utils.extensions.tasks.admin module

genui.utils.extensions.tasks.apps module

class genui.utils.extensions.tasks.apps.TasksConfig(app_name, app_module)[source]

Bases: AppConfig

name = 'genui.utils.extensions.tasks'

genui.utils.extensions.tasks.genuisetup module

genuisetup

Created by: Martin Sicho On: 4/30/20, 5:51 PM

genui.utils.extensions.tasks.genuisetup.setup(*args, **kwargs)[source]

genui.utils.extensions.tasks.models module

class genui.utils.extensions.tasks.models.PolymorphicTaskManager(*args, **kwargs)[source]

Bases: PolymorphicManager, TaskManager

class genui.utils.extensions.tasks.models.TaskShortcutsMixIn[source]

Bases: object

getTasksAsDict(started_only=False)[source]

genui.utils.extensions.tasks.progress module

progress

Created by: Martin Sicho On: 4/30/20, 5:29 PM

class genui.utils.extensions.tasks.progress.ProgressRecorder(task)[source]

Bases: ProgressRecorder

set_progress(current, total, description='', ctype='application/json', cenc='utf-8')[source]

genui.utils.extensions.tasks.serializers module

serializers

Created by: Martin Sicho On: 4/30/20, 5:33 PM

class genui.utils.extensions.tasks.serializers.TaskProgressInfoSerializer(*args, **kwargs)[source]

Bases: Serializer

class genui.utils.extensions.tasks.serializers.TaskProgressSerializer(*args, **kwargs)[source]

Bases: Serializer

class genui.utils.extensions.tasks.serializers.TaskSerializer(*args, **kwargs)[source]

Bases: Serializer

class genui.utils.extensions.tasks.serializers.TasksSerializerFactory[source]

Bases: object

class AutoSchemaMixIn[source]

Bases: object

get_operation(path, method)[source]
static get(field_names)[source]

genui.utils.extensions.tasks.tasks module

tasks

Created by: Martin Sicho On: 5/22/20, 9:09 AM

genui.utils.extensions.tasks.tests module

genui.utils.extensions.tasks.urls module

urls

Created by: Martin Sicho On: 4/30/20, 5:25 PM

genui.utils.extensions.tasks.utils module

tasks

Created by: Martin Sicho On: 1/4/20, 7:25 PM

genui.utils.extensions.tasks.utils.runTask(task, instance=None, eager=False, args=(), kwargs={})[source]

genui.utils.extensions.tasks.views module

class genui.utils.extensions.tasks.views.ModelTasksView(**kwargs)[source]

Bases: APIView

class Schema(tags=None, operation_id_base=None, component_name=None)[source]

Bases: AutoSchemaMixIn, AutoSchema

get(request, pk)[source]
model_class = None
permission_classes = (<class 'rest_framework.permissions.IsAuthenticated'>,)
schema
started_only = False
class genui.utils.extensions.tasks.views.TaskProgressView(**kwargs)[source]

Bases: APIView

get(request, task_id)[source]
permission_classes = (<class 'rest_framework.permissions.IsAuthenticated'>,)

Module contents