id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
31,000
test_field_date.py
viewflow_viewflow/tests/components/test_field_date.py
from selenium.webdriver.common.by import By from django import forms from django.test import override_settings from django.urls import path from django.views.generic import FormView from viewflow.urls import Application, Site from . import LiveTestCase @override_settings(ROOT_URLCONF=__name__) class Test(LiveTestCas...
1,971
Python
.py
51
27.647059
83
0.581152
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,001
test_field_checkbox.py
viewflow_viewflow/tests/components/test_field_checkbox.py
from selenium.webdriver.common.by import By from django import forms from django.test import override_settings from django.urls import path from django.views.generic import FormView from viewflow.urls import Application, Site from . import LiveTestCase @override_settings(ROOT_URLCONF=__name__) class Test(LiveTestCas...
1,570
Python
.py
43
25.255814
85
0.567852
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,002
this_object.py
viewflow_viewflow/viewflow/this_object.py
"""Forward-reference for class-body declarations""" # Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. fr...
3,645
Python
.py
87
34.45977
86
0.663358
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,003
jsonstore.py
viewflow_viewflow/viewflow/jsonstore.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. import copy import json from datetime import date, dat...
7,576
Python
.py
184
31.869565
83
0.631277
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,004
apps.py
viewflow_viewflow/viewflow/apps.py
from django.apps import AppConfig # Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial licence defined in file 'COMM_LICENSE', # which is part of this source code package. class ViewflowConf...
482
Python
.py
10
45.5
85
0.764454
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,005
conf.py
viewflow_viewflow/viewflow/conf.py
""" Settings for Viewflow are all namespaced in the VIEWFLOW setting. For example your project's `settings.py` file might look like this: VIEWFLOW = { 'WIDGET_RENDERERS': { 'django.forms.DateTimeInput': 'myapp.renderers.MyDateTimeRenderer' } } """ # Copyright (c) 2017-2024, Mikhail Podgurskiy # All Ri...
1,743
Python
.py
42
36.714286
83
0.721165
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,006
utils.py
viewflow_viewflow/viewflow/utils.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. import re from typing import Any, Callable, Iterator, ...
7,412
Python
.py
195
31.912821
103
0.644025
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,007
__init__.py
viewflow_viewflow/viewflow/__init__.py
"""Viewflow - The Django extension for perfectionists with yesterday’s deadlines.""" # Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is p...
1,192
Python
.py
25
44.96
86
0.761207
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,008
middleware.py
viewflow_viewflow/viewflow/middleware.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from django.core.exceptions import PermissionDenied ...
2,567
Python
.py
59
32.423729
89
0.602888
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,009
fields.py
viewflow_viewflow/viewflow/fields.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial licence defined in file 'COMM_LICENSE', # which is part of this source code package. import datetime import decimal import json import uuid...
4,565
Python
.py
112
31.401786
82
0.621921
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,010
viewflow.py
viewflow_viewflow/viewflow/templatetags/viewflow.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. import re from django import forms, template from dja...
9,431
Python
.py
246
30.097561
99
0.629061
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,011
workflow.py
viewflow_viewflow/viewflow/templatetags/workflow.py
from django import template from django.template.loader import select_template from viewflow.utils import get_object_data register = template.Library() @register.simple_tag(takes_context=True) def include_process_data(context, process): """Shortcut tag for list all data from linked process models.""" flow_...
2,680
Python
.py
70
31.585714
86
0.66345
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,012
fsm.py
viewflow_viewflow/viewflow/templatetags/fsm.py
from django.template import Library from django.contrib.admin.templatetags.base import InclusionAdminNode register = Library() @register.tag(name="change_form_fsm_tools") def change_form_fsm_tag(parser, token): """Display the row of fsm actions in object tools.""" return InclusionAdminNode( parser, ...
437
Python
.py
12
31.5
69
0.729858
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,013
filters.py
viewflow_viewflow/viewflow/views/filters.py
from django_filters.filterset import filterset_factory class FilterableViewMixin(object): """ A mixin that provides a way to show and handle a FilterSet in a request. """ filterset_class = None filterset_initial = None filter_fields = None strict_filter = False def get_filterset_clas...
2,395
Python
.py
60
29
86
0.593373
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,014
search.py
viewflow_viewflow/viewflow/views/search.py
from django.core.exceptions import FieldDoesNotExist from django.db.models import Q from django.db.models.constants import LOOKUP_SEP from django.utils.text import smart_split, unescape_string_literal def lookup_spawns_duplicates(opts, lookup_path): """ from django.contrib.admin.utils import lookup_spawns_dup...
3,837
Python
.py
96
31.458333
88
0.632527
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,015
delete.py
viewflow_viewflow/viewflow/views/delete.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from django.contrib import messages from django.contri...
3,465
Python
.py
81
34.395062
88
0.66073
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,016
create.py
viewflow_viewflow/viewflow/views/create.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from urllib.parse import quote as urlquote from djang...
3,941
Python
.py
93
33.72043
88
0.646644
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,017
__init__.py
viewflow_viewflow/viewflow/views/__init__.py
from .actions import BaseBulkActionView, DeleteBulkActionView from .base import Action, BulkActionForm, FormLayoutMixin from .create import CreateModelView from .delete import DeleteModelView from .detail import DetailModelView from .list import ListModelView, FilterableViewMixin, OrderableListViewMixin from .search im...
707
Python
.py
23
27.391304
76
0.791789
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,018
base.py
viewflow_viewflow/viewflow/views/base.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial licence defined in file 'COMM_LICENSE', # which is part of this source code package. from typing import Any, List, Union from django import...
1,954
Python
.py
53
29.641509
78
0.656399
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,019
detail.py
viewflow_viewflow/viewflow/views/detail.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from django.contrib.admin.utils import unquote from dj...
3,465
Python
.py
82
32.5
87
0.627969
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,020
update.py
viewflow_viewflow/viewflow/views/update.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from urllib.parse import quote as urlquote from django...
4,720
Python
.py
112
33.107143
88
0.639573
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,021
list.py
viewflow_viewflow/viewflow/views/list.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. import datetime import decimal from functools import l...
15,924
Python
.py
376
31.273936
88
0.596897
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,022
actions.py
viewflow_viewflow/viewflow/views/actions.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from django.db import router from django.db.models.del...
4,071
Python
.py
100
32.52
85
0.65334
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,023
signals.py
viewflow_viewflow/viewflow/workflow/signals.py
from django.dispatch import Signal # providing_args=["process", "task"] flow_started = Signal() # providing_args=["process", "task"] flow_finished = Signal() # providing_args=["process", "task"] task_started = Signal() # providing_args=["process", "task", "exception", "traceback"] task_failed = Signal() # providin...
372
Python
.py
11
32.363636
62
0.713483
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,024
models.py
viewflow_viewflow/viewflow/workflow/models.py
from contextlib import contextmanager from typing import Any, List from django.conf import settings from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.db import models from django.template import Template, Context from django.utils im...
9,656
Python
.py
253
30.051383
88
0.638195
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,025
context.py
viewflow_viewflow/viewflow/workflow/context.py
import threading _context_stack = threading.local() class Context(object): """Thread-local activation context, dynamically scoped. :keyword propagate_exception: If True, on activation failure exception will be propagated to previous activa...
1,540
Python
.py
37
30.432432
67
0.590695
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,026
lock.py
viewflow_viewflow/viewflow/workflow/lock.py
"""Prevents inconsistent db updates for flow.""" from __future__ import unicode_literals import time import random from contextlib import contextmanager from django.core.cache import cache as default_cache from django.db import transaction, DatabaseError from .exceptions import FlowLockFailed class NoLock(object):...
2,977
Python
.py
79
27.974684
85
0.59151
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,027
activation.py
viewflow_viewflow/viewflow/workflow/activation.py
import json import traceback from contextlib import ContextDecorator from typing import Any, List, Optional, Set from django.db import connection, transaction from django.utils.timezone import now from viewflow import fsm from .context import context from .signals import task_finished, task_failed from .status import...
10,938
Python
.py
264
30.299242
88
0.591521
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,028
token.py
viewflow_viewflow/viewflow/workflow/token.py
from itertools import count from typing import Iterator, Any from django.utils.deconstruct import deconstructible @deconstructible class Token: """ Helper for tree-like flow token management. We follow basic strategy for flow split/join Flow starts with only one 'start' token, - each split adds...
1,893
Python
.py
48
31.9375
84
0.606342
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,029
apps.py
viewflow_viewflow/viewflow/workflow/apps.py
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class WorkflowConfig(AppConfig): """Default application config.""" default_auto_field = "django.db.models.BigAutoField" name = "viewflow.workflow" label = "viewflow" # keep backward compatible with 1.x verbo...
344
Python
.py
8
39.125
59
0.744745
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,030
status.py
viewflow_viewflow/viewflow/workflow/status.py
from django.db import models from django.utils.translation import pgettext_lazy class PROCESS(models.TextChoices): CANCELED = "CANCELED", pgettext_lazy("STATUS", "Canceled") DONE = "DONE", pgettext_lazy("STATUS", "Done") NEW = "NEW", pgettext_lazy("STATUS", "New") class STATUS(models.TextChoices): A...
843
Python
.py
17
45
67
0.673569
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,031
utils.py
viewflow_viewflow/viewflow/workflow/utils.py
from .status import STATUS class Act(object): """Shortcut to access activation data.""" @property def process(self): """Shortcut for lambda activation: activation.process...)""" class Lookup(object): def __getattribute__(self, name): return lambda activation: ...
1,354
Python
.py
36
29.388889
87
0.62596
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,032
__init__.py
viewflow_viewflow/viewflow/workflow/__init__.py
from .status import STATUS, PROCESS from .activation import Activation from .base import Flow, Node from .context import context from .exceptions import FlowRuntimeError, FlowLockFailed from .token import Token from .utils import act __all__ = ( "STATUS", "PROCESS", "Activation", "Flow", "Node", ...
467
Python
.py
20
20.25
60
0.723596
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,033
admin.py
viewflow_viewflow/viewflow/workflow/admin.py
from django.contrib import admin, auth from .models import Process, Task class TaskInline(admin.TabularInline): """Task inline.""" model = Task fields = ["flow_task", "flow_task_type", "status", "token", "owner"] readonly_fields = ["flow_task", "flow_task_type", "status", "token", "owner"] def h...
2,443
Python
.py
68
29.102941
85
0.613396
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,034
base.py
viewflow_viewflow/viewflow/workflow/base.py
import copy from collections import defaultdict from textwrap import dedent from typing import Any, Dict, Iterator, List, Optional, Tuple from django.apps import apps from django.db import transaction from django.urls import include, path from django.urls.exceptions import NoReverseMatch from django.utils.timezone imp...
15,589
Python
.py
398
29.753769
88
0.591535
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,035
exceptions.py
viewflow_viewflow/viewflow/workflow/exceptions.py
class FlowRuntimeError(Exception): """Unrecoverable flow runtime error.""" class FlowLockFailed(Exception): """Flow lock failed."""
142
Python
.py
4
32
43
0.742647
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,036
fields.py
viewflow_viewflow/viewflow/workflow/fields.py
import warnings from functools import lru_cache from django.db import models from django.utils.module_loading import import_string from viewflow.utils import get_app_package, get_containing_app_data from viewflow.workflow.base import Flow from viewflow.workflow.exceptions import FlowRuntimeError from viewflow.workflo...
5,144
Python
.py
129
32.410853
101
0.64726
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,037
chart.py
viewflow_viewflow/viewflow/workflow/chart.py
# coding: utf-8 from __future__ import division import math from copy import copy from itertools import groupby from textwrap import wrap from django.template.loader import get_template from django.utils.encoding import force_str from .status import STATUS GAP_SIZE = 25 EDGE_START_GAP_SIZE = 2 EDGE_END_GAP_SIZE = 7 ...
20,700
Python
.py
523
27.080306
88
0.508344
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,038
managers.py
viewflow_viewflow/viewflow/workflow/managers.py
from django.db import models from django.db.models import Q, F, Value from django.db.models.functions import Concat from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.db.models.query import QuerySet from django.db.models.constants import LOOKUP_SEP from django.db.models.q...
9,876
Python
.py
229
31.170306
88
0.580013
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,039
0006_i18n.py
viewflow_viewflow/viewflow/workflow/migrations/0006_i18n.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import viewflow.workflow.token import viewflow.workflow.fields from django.conf import settings class Migration(migrations.Migration): dependencies = [ ("viewflow", "0005_rename_flowcls"), ] ...
4,728
Python
.py
141
21.716312
88
0.522043
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,040
0012_alter_process_data_alter_task_data.py
viewflow_viewflow/viewflow/workflow/migrations/0012_alter_process_data_alter_task_data.py
# Generated by Django 4.1.9 on 2023-09-21 09:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("viewflow", "0011_alter_task_created_and_more"), ] operations = [ migrations.AlterField( model_name="process", name="d...
565
Python
.py
18
23.055556
61
0.594843
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,041
0007_owner_permission_obj.py
viewflow_viewflow/viewflow/workflow/migrations/0007_owner_permission_obj.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("viewflow", "0006_merge"), ] operations = [ migrations.AddField( ...
803
Python
.py
25
22.44
74
0.560155
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,042
0010_viewflow20.py
viewflow_viewflow/viewflow/workflow/migrations/0010_viewflow20.py
# Generated by Django 3.1rc1 on 2020-07-27 08:04 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ("viewflow", "0009_merge"), ] operations = [ migrations.RemoveField( ...
2,683
Python
.py
83
19.518072
87
0.471109
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,043
0005_rename_flowcls.py
viewflow_viewflow/viewflow/workflow/migrations/0005_rename_flowcls.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("viewflow", "0004_extend_fields_length"), ] operations = [ migrations.RenameField( model_name="process", ...
397
Python
.py
14
21.571429
50
0.600529
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,044
0008_merge.py
viewflow_viewflow/viewflow/workflow/migrations/0008_merge.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("viewflow", "0007_owner_permission_obj"), ("viewflow", "0006_i18n"), ] operations = []
282
Python
.py
9
26.666667
50
0.656716
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,045
0001_initial.py
viewflow_viewflow/viewflow/workflow/migrations/0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import django.db.models.deletion import viewflow.workflow.token import viewflow.workflow.fields class Migration(migrations.Migration): dependencies = [ migrations.swa...
3,613
Python
.py
98
19.897959
87
0.425641
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,046
0013_process_seed_content_type_process_seed_object_id_and_more.py
viewflow_viewflow/viewflow/workflow/migrations/0013_process_seed_content_type_process_seed_object_id_and_more.py
# Generated by Django 5.0.1 on 2024-06-28 09:22 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("viewflow", "0012_alter_process_data_alter_task_data"), ] ...
1,416
Python
.py
42
22.5
69
0.545654
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,047
0007_task_assigned.py
viewflow_viewflow/viewflow/workflow/migrations/0007_task_assigned.py
# Generated by Django 2.1.12 on 2019-10-02 04:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("viewflow", "0006_i18n"), ] operations = [ migrations.AddField( model_name="task", name="assigned", fiel...
409
Python
.py
13
24.230769
87
0.621483
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,048
0003_task_owner_permission_change.py
viewflow_viewflow/viewflow/workflow/migrations/0003_task_owner_permission_change.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ("viewflow", "0002_fsmchange"), ] operations = [ migrations.AlterField( model_name="task", name="owner...
426
Python
.py
14
23.642857
74
0.619165
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,049
0006_merge.py
viewflow_viewflow/viewflow/workflow/migrations/0006_merge.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("viewflow", "0005_rename_flowcls"), ("viewflow", "0005_merge"), ] operations = []
277
Python
.py
9
26.111111
44
0.653992
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,050
0014_alter_process_parent_task.py
viewflow_viewflow/viewflow/workflow/migrations/0014_alter_process_parent_task.py
# Generated by Django 5.0.1 on 2024-07-11 05:14 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("viewflow", "0013_process_seed_content_type_process_seed_object_id_and_more"), ] operations = [ migrations.A...
663
Python
.py
20
23.5
87
0.584639
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,051
0004_subprocess.py
viewflow_viewflow/viewflow/workflow/migrations/0004_subprocess.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("viewflow", "0003_task_owner_permission_change"), ] operations = []
255
Python
.py
8
27.75
58
0.690083
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,052
0009_merge.py
viewflow_viewflow/viewflow/workflow/migrations/0009_merge.py
# Generated by Django 2.2.6 on 2019-10-28 12:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("viewflow", "0008_jsonfield_and_artifact"), ("viewflow", "0008_merge"), ] operations = []
261
Python
.py
8
27.5
52
0.669355
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,053
0008_jsonfield_and_artifact.py
viewflow_viewflow/viewflow/workflow/migrations/0008_jsonfield_and_artifact.py
# Generated by Django 3.0b1 on 2019-10-25 09:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("contenttypes", "0002_remove_content_type_name"), ("viewflow", "0007_task_assigned"), ] operations = [ ...
1,724
Python
.py
52
21.903846
69
0.541092
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,054
0011_alter_task_created_and_more.py
viewflow_viewflow/viewflow/workflow/migrations/0011_alter_task_created_and_more.py
# Generated by Django 4.1.9 on 2023-07-05 11:28 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ("viewflow", "0010_viewflow20"), ] operations = [ migrations.AlterField( model_name="task", ...
747
Python
.py
23
23.130435
88
0.579167
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,055
0004_extend_fields_length.py
viewflow_viewflow/viewflow/workflow/migrations/0004_extend_fields_length.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import viewflow.workflow.fields class Migration(migrations.Migration): dependencies = [ ("viewflow", "0003_task_owner_permission_change"), ] operations = [ migrations.AlterField( ...
659
Python
.py
20
25.3
78
0.62776
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,056
0002_fsmchange.py
viewflow_viewflow/viewflow/workflow/migrations/0002_fsmchange.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations def update_status(apps, schema_editor): Process = apps.get_model("viewflow", "Process") Process.objects.filter(status="STR").update(status="STARTED") Process.objects.filter(status="FNS").update(status...
935
Python
.py
24
32.458333
65
0.662237
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,057
0005_merge.py
viewflow_viewflow/viewflow/workflow/migrations/0005_merge.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("viewflow", "0004_subprocess"), ("viewflow", "0004_extend_fields_length"), ] operations = []
288
Python
.py
9
27.333333
50
0.664234
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,058
handle.py
viewflow_viewflow/viewflow/workflow/nodes/handle.py
from django.utils.timezone import now from viewflow import this from ..activation import Activation, leading_tasks_canceled from ..base import Node from ..status import STATUS from ..signals import task_started, task_finished from . import mixins class HandleActivation(mixins.NextNodeActivationMixin, Activation): ...
2,808
Python
.py
70
32.157143
87
0.628582
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,059
end.py
viewflow_viewflow/viewflow/workflow/nodes/end.py
from django.db import transaction from django.utils.timezone import now from ..base import Node from ..activation import Activation, process_not_cancelled, has_manage_permission from ..status import STATUS, PROCESS from ..signals import task_started, task_finished, flow_finished class EndActivation(Activation): ...
2,359
Python
.py
67
26.014925
82
0.596923
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,060
split.py
viewflow_viewflow/viewflow/workflow/nodes/split.py
from django.db import connection from django.utils.timezone import now from viewflow import this from ..activation import Activation from ..exceptions import FlowRuntimeError from ..signals import task_finished from ..status import STATUS from ..token import Token from ..base import Node, Edge from .join import Join f...
7,172
Python
.py
174
32.172414
189
0.620685
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,061
obsolete.py
viewflow_viewflow/viewflow/workflow/nodes/obsolete.py
import copy from viewflow.fsm import State from ..activation import Activation, STATUS, has_manage_permission from ..base import Node from . import mixins class ObsoleteActivation(Activation): @Activation.status.transition( source=State.ANY, target=STATUS.CANCELED, conditions=[lambda a: a...
1,236
Python
.py
37
26.675676
67
0.644482
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,062
mixins.py
viewflow_viewflow/viewflow/workflow/nodes/mixins.py
from typing import Any, Callable, Dict, Optional from viewflow import this from ..activation import Activation from ..status import STATUS from ..base import Edge class NextNodeActivationMixin(object): """Mixin for an activation of node with NextNodeMixin.""" @Activation.status.transition(source=STATUS.DONE...
4,680
Python
.py
100
36.15
102
0.610538
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,063
start.py
viewflow_viewflow/viewflow/workflow/nodes/start.py
from django.utils.timezone import now from viewflow import this from viewflow.utils import is_owner from ..base import Node from ..activation import Activation, leading_tasks_canceled, has_manage_permission from ..status import STATUS, PROCESS from ..signals import task_started, task_finished, flow_started from . impo...
6,439
Python
.py
165
29.842424
142
0.610148
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,064
switch.py
viewflow_viewflow/viewflow/workflow/nodes/switch.py
from django.db import transaction from django.utils.timezone import now from viewflow import this from viewflow.workflow.base import Node, Edge from viewflow.workflow.exceptions import FlowRuntimeError from viewflow.workflow.activation import Activation from . import mixins from ..status import STATUS class SwitchA...
2,699
Python
.py
70
29.457143
79
0.619724
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,065
__init__.py
viewflow_viewflow/viewflow/workflow/nodes/__init__.py
"""Base workflow node set.""" from .end import End, EndActivation from .func import Function, FunctionActivation from .handle import Handle, HandleActivation from .if_gate import If, IfActivation from .job import AbstractJob, AbstractJobActivation from .join import Join, JoinActivation from .obsolete import Obsolete, ...
994
Python
.py
38
22.578947
54
0.72956
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,066
if_gate.py
viewflow_viewflow/viewflow/workflow/nodes/if_gate.py
from django.db import transaction from django.utils.timezone import now from viewflow import this from ..base import Node, Edge from ..activation import Activation, has_manage_permission from ..status import STATUS from . import mixins class IfActivation(Activation): """Conditionally activate one of outgoing nod...
3,531
Python
.py
89
30.988764
81
0.609585
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,067
join.py
viewflow_viewflow/viewflow/workflow/nodes/join.py
from django.utils.timezone import now from viewflow.this_object import this from ..activation import Activation from ..base import Node from ..exceptions import FlowRuntimeError from ..status import STATUS from . import mixins class JoinActivation(mixins.NextNodeActivationMixin, Activation): """Activation for par...
5,371
Python
.py
134
30.61194
87
0.61534
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,068
func.py
viewflow_viewflow/viewflow/workflow/nodes/func.py
from django.db import transaction from django.utils.timezone import now from viewflow import this from ..activation import Activation, has_manage_permission from ..base import Node from ..status import STATUS from ..signals import task_started from . import mixins class FunctionActivation(mixins.NextNodeActivationMi...
1,946
Python
.py
54
28.648148
81
0.621406
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,069
job.py
viewflow_viewflow/viewflow/workflow/nodes/job.py
import json import traceback import uuid from django.utils import timezone from ..activation import Activation from ..base import Node from ..context import Context from ..fields import get_flow_ref from ..signals import task_failed from ..status import STATUS from . import mixins class AbstractJobActivation(mixins...
3,740
Python
.py
88
32.897727
89
0.588721
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,070
view.py
viewflow_viewflow/viewflow/workflow/nodes/view.py
from django.utils.timezone import now from viewflow import this from viewflow.utils import is_owner from ..base import Node from ..activation import Activation, has_manage_permission from ..status import STATUS from ..signals import task_started, task_finished from . import mixins class ViewActivation(mixins.NextNod...
8,235
Python
.py
227
27.264317
87
0.611034
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,071
nodes.py
viewflow_viewflow/viewflow/workflow/flow/nodes.py
from django.urls import path from viewflow import viewprop, this from viewflow.workflow import nodes from . import views, mixins, utils class Start(mixins.NodeDetailMixin, mixins.NodeUndoMixin, nodes.Start): """ The ``Start`` node in a flow. This node is used as the initial step in a flow by a user. ...
15,129
Python
.py
402
28.952736
189
0.6368
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,072
mixins.py
viewflow_viewflow/viewflow/workflow/flow/mixins.py
from typing import Type, Optional from django.views import View from django.urls import path from viewflow import viewprop from viewflow.urls import ViewsetMeta from . import utils class NodeDetailMixin(metaclass=ViewsetMeta): """Task detail view.""" index_view_class: Optional[Type[View]] = None @viewpr...
4,264
Python
.py
113
28.345133
87
0.597961
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,073
utils.py
viewflow_viewflow/viewflow/workflow/flow/utils.py
from functools import update_wrapper from django.core.exceptions import ImproperlyConfigured, PermissionDenied from django.db import transaction from django.shortcuts import get_object_or_404 from viewflow.fsm import TransitionNotAllowed def wrap_task_view(self, origin_view, permission=None): """Create wrapper a...
3,307
Python
.py
68
38.014706
97
0.638483
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,074
__init__.py
viewflow_viewflow/viewflow/workflow/flow/__init__.py
from ..base import Flow from .mixins import NodeDetailMixin, NodeExecuteMixin from .nodes import ( End, Function, Handle, If, Join, Obsolete, Split, SplitFirst, Start, StartHandle, Switch, View, ) from .viewset import FlowViewset, FlowAppViewset, WorkflowAppViewset __al...
624
Python
.py
37
12.567568
68
0.623932
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,075
viewset.py
viewflow_viewflow/viewflow/workflow/flow/viewset.py
from django.views.generic import RedirectView from django.urls import path from django.utils.http import url_has_allowed_host_and_scheme as is_safe_url from django.utils.translation import gettext_lazy as _ from viewflow import viewprop from viewflow.utils import DEFAULT from viewflow.urls import Application, AppMenuM...
14,963
Python
.py
400
29.1075
98
0.624281
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,076
filters.py
viewflow_viewflow/viewflow/workflow/flow/views/filters.py
from django_filters import ( DateRangeFilter, ChoiceFilter, FilterSet, ModelChoiceFilter as BaseModelChoiceFilter, MultipleChoiceFilter, ) from viewflow.this_object import this from viewflow.workflow.status import STATUS from viewflow.workflow.fields import get_task_ref from viewflow.workflow.model...
3,019
Python
.py
78
31.961538
85
0.668495
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,077
mixins.py
viewflow_viewflow/viewflow/workflow/flow/views/mixins.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from urllib.parse import quote as urlquote from django...
3,642
Python
.py
77
38.051948
95
0.646693
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,078
dashboard.py
viewflow_viewflow/viewflow/workflow/flow/views/dashboard.py
from django.core.exceptions import PermissionDenied from django.contrib.auth.decorators import login_required from django.db.models import Q from django.utils.decorators import method_decorator from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ from django.views import ...
5,205
Python
.py
127
32.559055
90
0.639786
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,079
create.py
viewflow_viewflow/viewflow/workflow/flow/views/create.py
from django.http import HttpResponseRedirect from django.views import generic from django.utils.translation import gettext_lazy as _ from viewflow.views import FormLayoutMixin from . import mixins class CreateProcessView( FormLayoutMixin, mixins.SuccessMessageMixin, mixins.TaskSuccessUrlMixin, mixins...
1,547
Python
.py
40
32.75
82
0.718291
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,080
__init__.py
viewflow_viewflow/viewflow/workflow/flow/views/__init__.py
""" Standalone workflow views. """ from .actions import ( AssignTaskView, BulkAssignTasksActionView, BulkUnassignTasksActionView, CancelProcessView, CancelTaskView, ReviveTaskView, UnassignTaskView, UndoTaskView, ) from .chart import FlowChartView from .create import CreateProcessView, ...
1,676
Python
.py
62
22.887097
87
0.769088
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,081
detail.py
viewflow_viewflow/viewflow/workflow/flow/views/detail.py
from django.contrib import messages from django.views import generic from django.utils.translation import gettext_lazy as _ from . import mixins class IndexTaskView(generic.RedirectView): """Redirect to the task detail.""" def get_redirect_url(self, *args, **kwargs): activation = self.request.activat...
3,697
Python
.py
83
35.746988
88
0.646484
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,082
chart.py
viewflow_viewflow/viewflow/workflow/flow/views/chart.py
from django.views.decorators.http import last_modified from django.http import HttpResponse from django.utils import timezone from django.utils.decorators import method_decorator from django.views import generic from ... import chart process_start_time = timezone.now() class FlowChartView(generic.View): """Flow...
903
Python
.py
24
31.125
69
0.681975
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,083
update.py
viewflow_viewflow/viewflow/workflow/flow/views/update.py
from django.http import HttpResponseRedirect from django.views import generic from django.utils.translation import gettext_lazy as _ from viewflow.views import FormLayoutMixin from . import mixins class UpdateProcessView( FormLayoutMixin, mixins.SuccessMessageMixin, mixins.TaskSuccessUrlMixin, mixins....
1,761
Python
.py
44
34
82
0.709016
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,084
list.py
viewflow_viewflow/viewflow/workflow/flow/views/list.py
from django.utils.safestring import mark_safe from django.utils.timesince import timesince from django.utils.translation import gettext_lazy as _ from viewflow.views import ListModelView, Action from viewflow.utils import viewprop from viewflow.workflow.status import STATUS from viewflow.workflow.models import Task fr...
6,480
Python
.py
150
36.673333
88
0.675323
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,085
actions.py
viewflow_viewflow/viewflow/workflow/flow/views/actions.py
from django import forms from django.contrib import messages from django.db import transaction from django.http import HttpResponseRedirect from django.utils.functional import cached_property from django.utils.translation import gettext_lazy as _ from django.views import generic from viewflow.views import BaseBulkActi...
7,042
Python
.py
181
31.370166
84
0.660898
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,086
sites.py
viewflow_viewflow/viewflow/urls/sites.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from django.urls import NoReverseMatch from django.uti...
5,371
Python
.py
137
29.226277
83
0.581601
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,087
__init__.py
viewflow_viewflow/viewflow/urls/__init__.py
"""Class based CRUD.""" from .base import BaseViewset, IndexViewMixin, Viewset, ViewsetMeta, route from .sites import AppMenuMixin, Application, Site from .model import ( BaseModelViewset, DeleteViewMixin, DetailViewMixin, CreateViewMixin, UpdateViewMixin, ListBulkActionsMixin, ModelViewset...
1,800
Python
.py
54
27.148148
88
0.680092
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,088
base.py
viewflow_viewflow/viewflow/urls/base.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. import copy import types import warnings from collectio...
13,661
Python
.py
327
31.159021
108
0.59154
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,089
model.py
viewflow_viewflow/viewflow/urls/model.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from django.urls import path from django.utils.transla...
11,588
Python
.py
294
30.891156
88
0.628808
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,090
__init__.py
viewflow_viewflow/viewflow/fsm/__init__.py
""" The viewflow.fsm module provides an implementation of finite state machine (FSM) workflows that enables users to define and execute sequential workflows with multiple states and transitions. """ # Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in...
751
Python
.py
22
31.818182
80
0.780387
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,091
admin.py
viewflow_viewflow/viewflow/fsm/admin.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is licensed under the Commercial license defined in file # 'COMM_LICENSE', which is part of this source code package. from contextlib import contextmanager from functools import partial from django.conf import settings from django.contr...
7,886
Python
.py
198
28.606061
84
0.577888
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,092
base.py
viewflow_viewflow/viewflow/fsm/base.py
"""Base FSM declarations.""" # Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from __future__ import a...
15,795
Python
.py
390
30.558974
97
0.603135
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,093
chart.py
viewflow_viewflow/viewflow/fsm/chart.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is licensed under the Commercial license defined in file # 'COMM_LICENSE', which is part of this source code package. from enum import Enum from typing import List, Set, Tuple from django.db.models import Choices from .base import State,...
3,001
Python
.py
75
32.706667
84
0.665177
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,094
views.py
viewflow_viewflow/viewflow/fsm/views.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is licensed under the Commercial license defined in file # 'COMM_LICENSE', which is part of this source code package. from django.db.models.query import QuerySet from rest_framework.views import APIView from rest_framework.response impor...
1,622
Python
.py
41
31.560976
87
0.658599
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,095
viewset.py
viewflow_viewflow/viewflow/fsm/viewset.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is licensed under the Commercial license defined in file # 'COMM_LICENSE', which is part of this source code package. from django.core.exceptions import PermissionDenied, SuspiciousOperation from django.db import transaction from django....
5,496
Python
.py
136
30.705882
88
0.621505
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,096
typing.py
viewflow_viewflow/viewflow/fsm/typing.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from typing import Callable, Any, List, Union, Mapping...
717
Python
.py
15
46.266667
78
0.787966
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,097
__init__.py
viewflow_viewflow/viewflow/forms/__init__.py
# Copyright (c) 2017-2022, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. from django.forms import ModelForm from .renderers imp...
753
Python
.py
35
17.657143
78
0.697183
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,098
renderers.py
viewflow_viewflow/viewflow/forms/renderers.py
# Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial license defined in file 'COMM_LICENSE', # which is part of this source code package. import json import re from copy import copy from typin...
27,498
Python
.py
713
27.868163
98
0.56304
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)
31,099
__init__.py
viewflow_viewflow/viewflow/management/__init__.py
"""Import flows before auth permission setup.""" # Copyright (c) 2017-2020, Mikhail Podgurskiy # All Rights Reserved. # This work is dual-licensed under AGPL defined in file 'LICENSE' with # LICENSE_EXCEPTION and the Commercial licence defined in file 'COMM_LICENSE', # which is part of this source code package. impo...
2,761
Python
.py
67
34.373134
82
0.67028
viewflow/viewflow
2,653
402
24
AGPL-3.0
9/5/2024, 5:14:22 PM (Europe/Amsterdam)