simpledomcontrol 0.57.4__tar.gz → 0.57.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/PKG-INFO +2 -1
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/pyproject.toml +7 -6
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/consumers.py +1 -1
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/add_controller_manager.py +3 -3
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/sdc_extentions/views.py +28 -2
- simpledomcontrol-0.57.7/sdc_core/template_files/Assets/src/index.style.scss +11 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/package.json +11 -11
- simpledomcontrol-0.57.7/sdc_tools/Assets/src/sdc_tools/sdc_tools.style.scss +8 -0
- simpledomcontrol-0.57.7/sdc_user/Assets/src/sdc_user/sdc_user.style.scss +2 -0
- simpledomcontrol-0.57.4/sdc_core/template_files/Assets/src/index.style.scss +0 -17
- simpledomcontrol-0.57.4/sdc_tools/Assets/src/sdc_tools/sdc_tools.style.scss +0 -8
- simpledomcontrol-0.57.4/sdc_user/Assets/src/sdc_user/sdc_user.style.scss +0 -2
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/README.md +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/apps.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/_private.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/add_model_manager.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/options.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/sdc_core_manager.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/settings_manager.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/utils.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_cc.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_get_controller_infos.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_get_controller_url.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_get_model_infos.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_init.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_is_installed.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_new_model.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_shell_execute_script.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_update_links.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_update_url.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/sdc_extentions/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/sdc_extentions/forms.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/sdc_extentions/import_manager.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/sdc_extentions/models.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/sdc_extentions/response.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/sdc_extentions/search.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/signals.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/.babelrc +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/gulpfile.jsx +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/src/index.organizer.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/tests/config/post-test-teardown.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/tests/config/pre-test-setup.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/tests/config/test-setup.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/webpack.config/webpack.default.config.jsx +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/webpack.config/webpack.development.config.jsx +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/webpack.config/webpack.production.config.jsx +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/apps/sdc_examples/Add_SDCUser.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/apps/sdc_examples/index.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/apps/sdc_examples/server_call.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/asgi.py.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/controller/templade_view.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/controller/template_controller.js.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/controller/template_css.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/controller/template_test.js.text +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/js_test.js.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/models/detail.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/models/list.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/routing.py.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/sdc_urls.py.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/sdc_views.py.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/settings_extension.py.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/templates/base.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/templates/index.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/urls.py.txt +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_alert_messenger/sdc_alert_messenger.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_alert_messenger/sdc_alert_messenger.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_auto_submit/sdc_auto_submit.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_detail_view/sdc_detail_view.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_detail_view/sdc_detail_view.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_dummy/sdc_dummy.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_dummy/sdc_dummy.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_error/sdc_error.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_error/sdc_error.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_list_view/sdc_list_view.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_list_view/sdc_list_view.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_model_form/sdc_model_form.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_model_form/sdc_model_form.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigation_client/sdc_navigation_client.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigator/sdc_navigator.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_navigator/sdc_navigator.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_search_view/sdc_search_view.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_search_view/sdc_search_view.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/controller/sdc_update_on_change/sdc_update_on_change.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/src/sdc_tools/sdc_tools.organizer.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/tests/sdc_tools.test.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/admin.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/apps.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/migrations/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/models.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/sdc_urls.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/sdc_views.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/elements/form.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/elements/inline_form.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/email/base.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/dummy_sdc.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_alert_messenger.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_detail_view.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_dummy.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_error.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_list_view.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_model_form.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_navigator.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_search_view.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templatetags/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templatetags/addclass.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templatetags/indexfilter.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templatetags/sdc_filter.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/tests.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/views.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/Assets/src/sdc_user/controller/sdc_login/sdc_login.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/Assets/src/sdc_user/controller/sdc_login/sdc_login.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/Assets/src/sdc_user/controller/sdc_logout/sdc_logout.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/Assets/src/sdc_user/controller/sdc_logout/sdc_logout.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/Assets/src/sdc_user/controller/sdc_user_nav_btn/sdc_user_nav_btn.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/Assets/src/sdc_user/controller/sdc_user_nav_btn/sdc_user_nav_btn.scss +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/Assets/src/sdc_user/sdc_user.organizer.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/Assets/tests/sdc_user.test.js +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/admin.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/apps.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/migrations/__init__.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/models.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/sdc_urls.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/sdc_views.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/templates/sdc_user/sdc/sdc_login.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/templates/sdc_user/sdc/sdc_logout.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/templates/sdc_user/sdc/sdc_user_nav_btn.html +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/tests.py +0 -0
- {simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/views.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: SimpleDomControl
|
|
3
|
-
Version: 0.57.
|
|
3
|
+
Version: 0.57.7
|
|
4
4
|
Summary: Simple DOM control -> a django MVC framework
|
|
5
5
|
Home-page: https://github.com/StarmanMartin/sdc
|
|
6
6
|
License: Apache-2.0
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.10
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
19
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
19
20
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
21
|
Requires-Dist: attrs (>=24.2.0,<25.0.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "SimpleDomControl"
|
|
3
|
-
version = "0.57.
|
|
3
|
+
version = "0.57.7"
|
|
4
4
|
authors = [ "Martin Starman <private@martin-starman.com>", ]
|
|
5
5
|
description = "Simple DOM control -> a django MVC framework"
|
|
6
6
|
readme = "README.md"
|
|
@@ -37,11 +37,12 @@ testpaths = [
|
|
|
37
37
|
]
|
|
38
38
|
|
|
39
39
|
[tool.poetry.group.dev.dependencies]
|
|
40
|
-
pytest = "^
|
|
41
|
-
pillow = "^
|
|
42
|
-
sphinx
|
|
43
|
-
sphinx-
|
|
44
|
-
sphinx-markdown-builder = "^0.6.
|
|
40
|
+
pytest = "^8.3.4"
|
|
41
|
+
pillow = "^11.0.0"
|
|
42
|
+
sphinx = "^8.1.3"
|
|
43
|
+
sphinx-toolbox = "^3.8.1"
|
|
44
|
+
sphinx-markdown-builder = "^0.6.7"
|
|
45
|
+
sphinx-rtd-theme = "^3.0.2"
|
|
45
46
|
|
|
46
47
|
[build-system]
|
|
47
48
|
requires = ["poetry-core"]
|
|
@@ -129,7 +129,7 @@ class SDCConsumer(AsyncWebsocketConsumer):
|
|
|
129
129
|
controller = import_function("%s.sdc_views.%s" % (json_data['app'], controller_name))
|
|
130
130
|
c_instance = controller()
|
|
131
131
|
if isinstance(c_instance, SdcAccessMixin):
|
|
132
|
-
if not c_instance.
|
|
132
|
+
if not await c_instance.async_check_requirements(self.scope['user']):
|
|
133
133
|
raise PermissionDenied()
|
|
134
134
|
method = getattr(controller(), json_data['function'])
|
|
135
135
|
|
|
@@ -160,11 +160,11 @@ class AddControllerManager:
|
|
|
160
160
|
if not os.path.exists(org_style_file_path):
|
|
161
161
|
org_file_path_root = os.path.join(options.PROJECT_ROOT, "Assets/src",
|
|
162
162
|
"index.style.scss")
|
|
163
|
-
line = '@
|
|
163
|
+
line = '@use "./%s/%s.style.scss";\n' % (self.app_name, self.app_name)
|
|
164
164
|
|
|
165
165
|
self._add_scss_to_src(org_file_path_root, line)
|
|
166
166
|
|
|
167
|
-
line = '@
|
|
167
|
+
line = '@use "./controller/%s/%s.scss";\n' % (self.controller_name_sc, self.controller_name_sc)
|
|
168
168
|
self._add_scss_to_src(org_style_file_path, line)
|
|
169
169
|
|
|
170
170
|
line = 'import {} from "./controller/%s/%s.js";\n' % (self.controller_name_sc, self.controller_name_sc)
|
|
@@ -206,7 +206,7 @@ class AddControllerManager:
|
|
|
206
206
|
text = ''
|
|
207
207
|
added = False
|
|
208
208
|
for line in fin:
|
|
209
|
-
if not line.startswith('@
|
|
209
|
+
if not line.startswith('@use') and not added:
|
|
210
210
|
text += "%s" % new_line
|
|
211
211
|
added = True
|
|
212
212
|
text += line
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import json
|
|
2
2
|
|
|
3
|
+
from channels.db import database_sync_to_async
|
|
3
4
|
from django.contrib.auth.mixins import AccessMixin
|
|
4
5
|
from django.core.exceptions import PermissionDenied, ImproperlyConfigured
|
|
5
6
|
from django.http import HttpResponse
|
|
@@ -9,6 +10,10 @@ from sdc_core.sdc_extentions.response import send_redirect, send_success
|
|
|
9
10
|
from django.conf import settings
|
|
10
11
|
|
|
11
12
|
class SdcAccessMixin(AccessMixin):
|
|
13
|
+
|
|
14
|
+
async def async_check_requirements(self, user):
|
|
15
|
+
return self.check_requirements(user)
|
|
16
|
+
|
|
12
17
|
def check_requirements(self, user):
|
|
13
18
|
return True
|
|
14
19
|
|
|
@@ -18,6 +23,10 @@ class SdcAccessMixin(AccessMixin):
|
|
|
18
23
|
|
|
19
24
|
class SdcLoginRequiredMixin(SdcAccessMixin):
|
|
20
25
|
"""Verify that the current user is authenticated."""
|
|
26
|
+
|
|
27
|
+
async def async_check_requirements(self, user):
|
|
28
|
+
return self.check_requirements(user)
|
|
29
|
+
|
|
21
30
|
def check_requirements(self, user):
|
|
22
31
|
return user.is_authenticated
|
|
23
32
|
|
|
@@ -55,13 +64,30 @@ class SdcGroupRequiredMixin(SdcLoginRequiredMixin):
|
|
|
55
64
|
group_required: list[str] = []
|
|
56
65
|
staff_allowed: bool = True
|
|
57
66
|
|
|
67
|
+
|
|
68
|
+
def _get_groups(self, user):
|
|
69
|
+
user_groups = []
|
|
70
|
+
for group in user.groups.values_list('name', flat=True):
|
|
71
|
+
user_groups.append(group)
|
|
72
|
+
return user_groups
|
|
73
|
+
|
|
74
|
+
async def async_check_requirements(self, user):
|
|
75
|
+
if not super().async_check_requirements(user):
|
|
76
|
+
return False
|
|
77
|
+
user_groups = await database_sync_to_async(self._get_groups)(user)
|
|
78
|
+
|
|
79
|
+
return self._check_groups(user_groups, user)
|
|
80
|
+
|
|
58
81
|
def check_requirements(self, user):
|
|
59
82
|
if not super().check_requirements(user):
|
|
60
83
|
return False
|
|
61
84
|
user_groups = []
|
|
62
|
-
for group in
|
|
85
|
+
for group in self._get_groups(user):
|
|
63
86
|
user_groups.append(group)
|
|
64
87
|
|
|
88
|
+
return self._check_groups(user_groups, user)
|
|
89
|
+
|
|
90
|
+
def _check_groups(self, user_groups, user):
|
|
65
91
|
return len(set(user_groups).intersection(self.group_required)) > 0 or user.is_superuser or (self.staff_allowed and user.is_staff)
|
|
66
92
|
|
|
67
93
|
def dispatch(self, request, *args, **kwargs):
|
|
@@ -100,7 +126,7 @@ class SDCView(View):
|
|
|
100
126
|
handler = getattr(
|
|
101
127
|
self, request.POST.get('_sdc_func_name'), self.http_method_not_allowed
|
|
102
128
|
)
|
|
103
|
-
res = handler(request, **json.loads(request.POST.get('data'
|
|
129
|
+
res = handler(request, **json.loads(request.POST.get('data')))
|
|
104
130
|
if isinstance(res, HttpResponse):
|
|
105
131
|
return res
|
|
106
132
|
return send_success(_return_data=res)
|
|
@@ -40,30 +40,30 @@
|
|
|
40
40
|
"license": "",
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/core": "^7.23.7",
|
|
43
|
-
"@babel/preset-react": "^7.
|
|
43
|
+
"@babel/preset-react": "^7.26.3",
|
|
44
44
|
"@babel/register": "^7.23.7",
|
|
45
45
|
"babel-jest": "^29.7.0",
|
|
46
46
|
"babel-loader": "^9.1.3",
|
|
47
|
-
"css-loader": "^
|
|
48
|
-
"dotenv": "^16.
|
|
47
|
+
"css-loader": "^7.1.2",
|
|
48
|
+
"dotenv": "^16.4.7",
|
|
49
49
|
"glob-parent": "^6.0.2",
|
|
50
50
|
"glob-watcher": "^6.0.0",
|
|
51
|
-
"gulp": "^
|
|
51
|
+
"gulp": "^5.0.0",
|
|
52
52
|
"gulp-clean": "^0.4.0",
|
|
53
|
-
"gulp-copy": "^
|
|
53
|
+
"gulp-copy": "^5.0.0",
|
|
54
54
|
"gulp-exec": "^5.0.0",
|
|
55
55
|
"gulp-rename": "^2.0.0",
|
|
56
|
-
"gulp-sass": "^
|
|
56
|
+
"gulp-sass": "^6.0.0",
|
|
57
57
|
"gulp-uglify": "^3.0.2",
|
|
58
58
|
"jest": "^29.7.0",
|
|
59
59
|
"jest-environment-jsdom": "^29.7.0",
|
|
60
60
|
"js-cookie": "^3.0.5",
|
|
61
61
|
"micromatch": "^4.0.8",
|
|
62
|
-
"sass": "^1.
|
|
63
|
-
"sass-loader": "^
|
|
64
|
-
"style-loader": "^
|
|
62
|
+
"sass": "^1.82.0",
|
|
63
|
+
"sass-loader": "^16.0.4",
|
|
64
|
+
"style-loader": "^4.0.0",
|
|
65
65
|
"terser-webpack-plugin": "^5.3.10",
|
|
66
|
-
"webpack": "^5.
|
|
66
|
+
"webpack": "^5.97.1",
|
|
67
67
|
"webpack-stream": "^7.0.0"
|
|
68
68
|
},
|
|
69
69
|
"overrides": {
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"esm": "^3.2.25",
|
|
77
77
|
"jquery": "^3.7.0",
|
|
78
78
|
"lodash": "^4.17.21",
|
|
79
|
-
"sdc_client": "^0.57.
|
|
79
|
+
"sdc_client": "^0.57.7"
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
@use "controller/sdc_alert_messenger/sdc_alert_messenger";
|
|
2
|
+
@use "controller/sdc_detail_view/sdc_detail_view";
|
|
3
|
+
@use "controller/sdc_error/sdc_error";
|
|
4
|
+
@use "controller/sdc_list_view/sdc_list_view";
|
|
5
|
+
@use "controller/sdc_model_form/sdc_model_form";
|
|
6
|
+
@use "controller/sdc_navigator/sdc_navigator";
|
|
7
|
+
@use "controller/sdc_search_view/sdc_search_view";
|
|
8
|
+
@use "controller/sdc_dummy/sdc_dummy.scss";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@import "../../node_modules/bootstrap/dist/css/bootstrap";
|
|
2
|
-
@import "./sdc_user/sdc_user.style";
|
|
3
|
-
@import "./sdc_tools/sdc_tools.style";
|
|
4
|
-
|
|
5
|
-
body::before {
|
|
6
|
-
content: "SDC Works";
|
|
7
|
-
font-size: larger;
|
|
8
|
-
color: red;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
body {
|
|
12
|
-
background-color: cornflowerblue;
|
|
13
|
-
|
|
14
|
-
.navbar-dummy {
|
|
15
|
-
height: 70px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
@import "controller/sdc_alert_messenger/sdc_alert_messenger";
|
|
2
|
-
@import "controller/sdc_detail_view/sdc_detail_view";
|
|
3
|
-
@import "controller/sdc_error/sdc_error";
|
|
4
|
-
@import "controller/sdc_list_view/sdc_list_view";
|
|
5
|
-
@import "controller/sdc_model_form/sdc_model_form";
|
|
6
|
-
@import "controller/sdc_navigator/sdc_navigator";
|
|
7
|
-
@import "controller/sdc_search_view/sdc_search_view";
|
|
8
|
-
@import "./controller/sdc_dummy/sdc_dummy.scss";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/__init__.py
RENAMED
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/_private.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/options.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/init_add/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_init.py
RENAMED
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_is_installed.py
RENAMED
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_new_model.py
RENAMED
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_update_links.py
RENAMED
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/management/commands/sdc_update_url.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/sdc_extentions/import_manager.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/Assets/gulpfile.jsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/models/detail.html
RENAMED
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/models/list.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/sdc_views.py.txt
RENAMED
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/templates/base.html
RENAMED
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_core/template_files/templates/index.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/Assets/tests/sdc_tools.test.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/elements/inline_form.html
RENAMED
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/dummy_sdc.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_dummy.html
RENAMED
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_tools/templates/sdc_tools/sdc/sdc_error.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/templates/sdc_user/sdc/sdc_login.html
RENAMED
|
File without changes
|
{simpledomcontrol-0.57.4 → simpledomcontrol-0.57.7}/sdc_user/templates/sdc_user/sdc/sdc_logout.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|