educommon 3.40.1__tar.gz → 3.40.2__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.
- {educommon-3.40.1 → educommon-3.40.2}/CHANGELOG.md +11 -0
- {educommon-3.40.1 → educommon-3.40.2}/PKG-INFO +1 -1
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/validators/simple.py +33 -3
- educommon-3.40.2/src/educommon/utils/files.py +24 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon.egg-info/PKG-INFO +1 -1
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon.egg-info/SOURCES.txt +1 -0
- {educommon-3.40.1 → educommon-3.40.2}/CONDUCT.md +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/CONTRIBUTING.md +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/MANIFEST.in +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/README.md +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/pyproject.toml +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/setup.cfg +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/README.rst +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/apps.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/static/edu_about/barsgroup.png +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/ui/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/ui/about-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/ui/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/ui/common-tab.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/ui/packages-tab.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/ui/postgresql-extensions-tab.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/ui/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/about/utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/apps.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/consts.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/exceptions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/helpers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/locker.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/management/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/management/commands/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/management/commands/sync_task_statuses.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/migrations/0001_initial.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/migrations/0002_task_type_and_status_data.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/migrations/0003_alter_runningtask_options.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/migrations/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/tasks.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/templates/ui-js/async-task-list-win.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/templates/ui-js/async-task-revoke.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/templates/ui-js/async-task-view-win.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/apps.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/exceptions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/fixtures/initial_data.json +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/locks.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/migrations/0001_initial.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/migrations/0002_load_initial_data.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/migrations/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/statuses.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/tasks.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/README.rst +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/app_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/apps.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/constants.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/error_log/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/error_log/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/helpers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/management/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/management/commands/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/management/commands/audit_log_migrate_data.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/management/commands/reinstall_audit_log.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/management/commands/removing_false_logs.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/middleware.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0001_initial.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0002_install_audit_log.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0003_logproxy.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0004_reinstall_audit_log.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0005_postgresql_error.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0006_auto_20200806_1707.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0007_create_selective_tables_function.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0008_table_logged.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0009_reinstall_audit_log.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0010_alter_auditlog_time.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/permissions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/proxies.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/routers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/sql/configure_audit_log.sql +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/sql/install_audit_log.sql +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/sql/new_audit_log_removing_false_logs.sql +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/sql/old_audit_log_removing_false_logs.sql +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/utils/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/utils/operations.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/app_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/backends/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/backends/base.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/backends/caching.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/backends/simple.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/checker.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/config.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/constants.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/management/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/management/commands/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/management/commands/rbac.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/manager.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/migrations/0001_initial.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/migrations/0002_model_modifier_metaclass_fix.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/migrations/0003_permission_hidden.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/migrations/0004_auto_20171024_1245.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/migrations/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/permissions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/templates/rbac/role-add-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/templates/rbac/role-edit-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/templates/rbac/roles-list-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/templates/rbac/roles-view-list-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/validators.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/app_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/checkers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/const.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/migrations/0001_initial.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/migrations/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/static/simple_auth/simple_auth.css +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/templates/simple_auth/change_reset_password_page.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/templates/simple_auth/email/reset_password.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/templates/simple_auth/login_page.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/templates/simple_auth/reset_password_page.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/validators.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/app_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/base.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/catalogs.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/apps.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/migrations/0001_initial.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/migrations/0002_add_contingent_model_deleted.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/migrations/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/model_views.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/observer.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/plugin_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/storage.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/json_data/icao_citizenship.json +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/json_data/okogu.json +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/json_data/oksm.json +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/consts.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/fields.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/migration/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/migration/operations.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/mixins/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/mixins/date_interval.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/mixins/validation.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/model_view/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/model_view/table-view.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/observer.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/README.md +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/const.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/management/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/management/commands/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/management/commands/apply_partitioning.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/management/commands/clear_table.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/management/commands/split_table.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/partitioning.sql +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/partitioning_set_search_path.sql +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/triggers.sql +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/routers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/signals.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/validators/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/README.rst +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/api.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/app_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/exceptions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/management/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/management/commands/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/management/commands/atcfs_migrate.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/monkey_patching.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/settings.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/storage.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/storages/atcfs/templates/atcfs_unavailable.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/extjs/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/extjs/fields/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/extjs/fields/input_params.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/XLSReader.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/api.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/constants.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/loggers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/proxy.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/proxy_import.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/refactoring-notes.txt +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/report.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/test_file.xls +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/importer/validators.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/integration_entities/README.rst +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/integration_entities/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/integration_entities/consts.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/integration_entities/entities.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/integration_entities/enums.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/integration_entities/helpers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/integration_entities/mixins.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ioc/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/logger/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/logger/app_settings.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/logger/apps.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/logger/consts.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/logger/formatters.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/logger/helpers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/logger/loggers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/logger/records.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/delete_check/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/delete_check/cancel-confirm-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/delete_check/listeners.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/delete_check/mixins.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/delete_check/related-objects-window.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/delete_check/signals.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/delete_check/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/listeners/delete_check/utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/extensions/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/m3/transaction_context.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/apps.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/filters.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/templates/base-grid-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/templates/filter-panel.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/templates/grid-panel.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/templates/multiSelectWindow.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/templates/multiselect-page-fix.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/templates/relations-check-mixin-template.html +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/objectpack/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/README.rst +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/app_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/apps.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/base.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/builders/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/builders/excel/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/builders/excel/_base.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/builders/excel/_header.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/builders/excel/constants.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/builders/excel/product.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/builders/excel/with_merged_cells.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/config.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/constants.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/editor/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/editor/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/editor/edit-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/editor/list-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/editor/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/exceptions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0001_initial.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0002_report_filters.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0003_reportfilter_exclude.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0004_reportfilter_fields.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0005_reportcolumn_visible.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0006_reportsorting.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0007_include_available_units.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0008_auto_20170407_1318.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0009_auto_20180405_0642.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0010_add_aggregate_fields.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/0011_alter_reportfilter_case_sensitive_and_more.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/migrations/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/mixins.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/plugin_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/registries.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/constructor/validators.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/reporter.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/report/utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/rest/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/rest/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/rest/context.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/rest/controllers.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/rest/misc.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/rest/mixins.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/secure_media/README.rst +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/secure_media/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/secure_media/app_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/thread_data.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/caching.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/conversion.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/crypto.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/date.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/db/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/db/postgresql.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/enums.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/fonts/Arial.ttf +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/fonts/Calibri.ttf +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/fonts/Tahoma.ttf +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/fonts/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/licence/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/licence/converters.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/misc.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/object_grid.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/phone_number/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/phone_number/enums.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/phone_number/modelfields.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/phone_number/phone_number.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/phone_number/validators.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/plugins.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/registry.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/seqtools.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/serializer.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/storage.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/system.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/system_app/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/system_app/management/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/system_app/management/commands/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/system_app/management/commands/delete_objects.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/system_app/templatetags/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/system_app/templatetags/educommon.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/xml/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/xml/catalog.json +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/xml/resolver.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/xml/saml-schema-assertion-2.0.xsd +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/xml/saml-schema-protocol-2.0.xsd +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/xml/xenc-schema.xsd +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/utils/xml/xmldsig-core-schema.xsd +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/README.rst +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/actions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/app_meta.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/base.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0001_initial.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0002_auto_20160628_1334.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0003_add_fields_to_smev_logs.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0004_auto_20160727_1600.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0005_auto_20161130_1615.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0006_auto_20170327_1027.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0007_auto_20180607_1040.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0008_auto_20180713_1445.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/0009_auto_20201130_1553.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/migrations/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/models.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/provider.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/report.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/smev/__init__.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/smev/applications.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/smev/exceptions.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/templates/report/smev_logs.xlsx +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/templates/ui-js/smev-logs-list-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/templates/ui-js/smev-logs-report-setting-window.js +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/ui.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon/ws_log/utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon.egg-info/dependency_links.txt +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon.egg-info/requires.txt +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/src/educommon.egg-info/top_level.txt +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_contingent_plugin_utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_dates_splitter.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_delete_check.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_delete_objects.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_django_db_utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_interval_mixins.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_personal_data_fields.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_phone_number.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_report.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_service_db_router.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_utils.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_utils_plugins.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/test_validators.py +0 -0
- {educommon-3.40.1 → educommon-3.40.2}/tests/tests_rbac.py +0 -0
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
и проект следует [Семантическому версионированию](http://semver.org/).
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
## [3.40.2] - 2026-09-10
|
|
10
|
+
|
|
11
|
+
Исправлено определение mimetype файлов при валидации загружаемых файлов.
|
|
12
|
+
|
|
13
|
+
### Исправлено
|
|
14
|
+
|
|
15
|
+
- [EDUCLLG-10204](https://jira.bars.group/browse/EDUCLLG-10204)
|
|
16
|
+
PATCH Исправлено определение mimetype файлов: тип определяется по файлу, не по буферу в памяти.
|
|
17
|
+
PATCH Добавлен менеджер контекста seek_to_zero, устанавливающий указатель файла в начало.
|
|
18
|
+
|
|
19
|
+
|
|
9
20
|
## [3.40.1] - 2026-07-31
|
|
10
21
|
|
|
11
22
|
Выделен базовый класс для построения отчетов.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: educommon
|
|
3
|
-
Version: 3.40.
|
|
3
|
+
Version: 3.40.2
|
|
4
4
|
Summary: Общая кодовая база для проектов БЦ Образование
|
|
5
5
|
Author-email: BARS Group <education_dev@bars-open.ru>
|
|
6
6
|
Project-URL: Homepage, https://stash.bars-open.ru/projects/EDUBASE/repos/educommon/browse
|
|
@@ -10,6 +10,12 @@ from functools import (
|
|
|
10
10
|
from itertools import (
|
|
11
11
|
cycle,
|
|
12
12
|
)
|
|
13
|
+
from os.path import (
|
|
14
|
+
isfile,
|
|
15
|
+
)
|
|
16
|
+
from tempfile import (
|
|
17
|
+
NamedTemporaryFile,
|
|
18
|
+
)
|
|
13
19
|
|
|
14
20
|
import magic
|
|
15
21
|
from django.core.exceptions import (
|
|
@@ -31,6 +37,9 @@ from educommon.django.db.validators import (
|
|
|
31
37
|
IModelValidator,
|
|
32
38
|
validate_value,
|
|
33
39
|
)
|
|
40
|
+
from educommon.utils.files import (
|
|
41
|
+
seek_to_zero,
|
|
42
|
+
)
|
|
34
43
|
from educommon.utils.misc import (
|
|
35
44
|
get_mime_type_for_extension,
|
|
36
45
|
)
|
|
@@ -406,6 +415,29 @@ def okfs_validator(value):
|
|
|
406
415
|
is_okfs_valid = partial(validate_value, validator=okfs_validator)
|
|
407
416
|
|
|
408
417
|
|
|
418
|
+
def get_file_mime_type(file):
|
|
419
|
+
"""Возвращает mimetype файла.
|
|
420
|
+
|
|
421
|
+
:param file: Файл, mimetype которого определяется
|
|
422
|
+
:type file: file
|
|
423
|
+
:return: Mime type файла
|
|
424
|
+
:rtype: str
|
|
425
|
+
"""
|
|
426
|
+
try:
|
|
427
|
+
file_path = file.path
|
|
428
|
+
except (AttributeError, NotImplementedError, ValueError):
|
|
429
|
+
file_path = None
|
|
430
|
+
|
|
431
|
+
if file_path and isfile(file_path):
|
|
432
|
+
return magic.from_file(file_path, mime=True)
|
|
433
|
+
|
|
434
|
+
with seek_to_zero(file), NamedTemporaryFile() as temp_file:
|
|
435
|
+
temp_file.write(file.read())
|
|
436
|
+
temp_file.flush()
|
|
437
|
+
|
|
438
|
+
return magic.from_file(temp_file.name, mime=True)
|
|
439
|
+
|
|
440
|
+
|
|
409
441
|
def validate_file_mime_type(file, allowed_mime_types):
|
|
410
442
|
"""Валидация mimetype файла.
|
|
411
443
|
|
|
@@ -417,9 +449,7 @@ def validate_file_mime_type(file, allowed_mime_types):
|
|
|
417
449
|
:param allowed_mime_types: Набор Mime types допустимых для загрузки
|
|
418
450
|
:type: iterable
|
|
419
451
|
"""
|
|
420
|
-
file
|
|
421
|
-
file_mime_type = magic.from_buffer(file.read(), mime=True)
|
|
422
|
-
if file_mime_type not in allowed_mime_types:
|
|
452
|
+
if get_file_mime_type(file) not in allowed_mime_types:
|
|
423
453
|
raise ValidationError('Mime type файла не соотвествует допустимым в системе')
|
|
424
454
|
|
|
425
455
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Утилиты для работы с файлами."""
|
|
2
|
+
from contextlib import (
|
|
3
|
+
contextmanager,
|
|
4
|
+
)
|
|
5
|
+
from typing import (
|
|
6
|
+
IO,
|
|
7
|
+
Iterator,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@contextmanager
|
|
12
|
+
def seek_to_zero(file: IO) -> Iterator[IO]:
|
|
13
|
+
"""Устанавливает указатель файла в начало на время работы с ним.
|
|
14
|
+
|
|
15
|
+
После выхода из менеджера контекста указатель также возвращается в начало.
|
|
16
|
+
|
|
17
|
+
:param file: Файл
|
|
18
|
+
:return: Файл с указателем, установленным в начало
|
|
19
|
+
"""
|
|
20
|
+
file.seek(0)
|
|
21
|
+
try:
|
|
22
|
+
yield file
|
|
23
|
+
finally:
|
|
24
|
+
file.seek(0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: educommon
|
|
3
|
-
Version: 3.40.
|
|
3
|
+
Version: 3.40.2
|
|
4
4
|
Summary: Общая кодовая база для проектов БЦ Образование
|
|
5
5
|
Author-email: BARS Group <education_dev@bars-open.ru>
|
|
6
6
|
Project-URL: Homepage, https://stash.bars-open.ru/projects/EDUBASE/repos/educommon/browse
|
|
@@ -310,6 +310,7 @@ src/educommon/utils/conversion.py
|
|
|
310
310
|
src/educommon/utils/crypto.py
|
|
311
311
|
src/educommon/utils/date.py
|
|
312
312
|
src/educommon/utils/enums.py
|
|
313
|
+
src/educommon/utils/files.py
|
|
313
314
|
src/educommon/utils/misc.py
|
|
314
315
|
src/educommon/utils/object_grid.py
|
|
315
316
|
src/educommon/utils/plugins.py
|
|
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
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/management/commands/__init__.py
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
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_task/templates/ui-js/async-task-revoke.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
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/async_tasks/migrations/0002_load_initial_data.py
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
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/management/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0002_install_audit_log.py
RENAMED
|
File without changes
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0004_reinstall_audit_log.py
RENAMED
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0005_postgresql_error.py
RENAMED
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0006_auto_20200806_1707.py
RENAMED
|
File without changes
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0008_table_logged.py
RENAMED
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0009_reinstall_audit_log.py
RENAMED
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/audit_log/migrations/0010_alter_auditlog_time.py
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
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/management/commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/migrations/0003_permission_hidden.py
RENAMED
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/migrations/0004_auto_20171024_1245.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/templates/rbac/role-add-window.js
RENAMED
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/templates/rbac/role-edit-window.js
RENAMED
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/rbac/templates/rbac/roles-list-window.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
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/auth/simple_auth/migrations/0001_initial.py
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
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/model_views.py
RENAMED
|
File without changes
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/observer.py
RENAMED
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/contingent_plugin/plugin_meta.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/contingent/json_data/icao_citizenship.json
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
|
{educommon-3.40.1 → educommon-3.40.2}/src/educommon/django/db/partitioning/management/__init__.py
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
|