diff --git a/ESSArch_Core/WorkflowEngine/models.py b/ESSArch_Core/WorkflowEngine/models.py index a1d0e4a8d..05444a007 100644 --- a/ESSArch_Core/WorkflowEngine/models.py +++ b/ESSArch_Core/WorkflowEngine/models.py @@ -88,7 +88,7 @@ def create_sub_task(t, step=None, immutable=True, link_error=None): # For some reason, __repr__ needs to be called for the link_error # signature to be called when an error occurs in a task - repr(link_error) + repr(link_error) # noqa: B018 logger.debug( "CREATE SUB TASK: process_task_pk=%s celery_id=%s " diff --git a/ESSArch_Core/essxml/ProfileMaker/xsdtojson.py b/ESSArch_Core/essxml/ProfileMaker/xsdtojson.py index 0d0a02662..ee942de97 100644 --- a/ESSArch_Core/essxml/ProfileMaker/xsdtojson.py +++ b/ESSArch_Core/essxml/ProfileMaker/xsdtojson.py @@ -73,12 +73,6 @@ def getSuffix(tag): def analyze2(element, tree, usedTypes=None, minC=1, maxC=1, choise=-1): global choiseCount - global elCount - global complexTypes - global attributeGroups - global finishedGroups - global attributesComplexTypes - global elementTypes if usedTypes is None: usedTypes = [] @@ -244,8 +238,6 @@ def analyze2(element, tree, usedTypes=None, minC=1, maxC=1, choise=-1): def parseAttribute(element): - global complexTypes - global attributeGroups att = OrderedDict() name = element.get('name') @@ -310,10 +302,6 @@ def parseAttribute(element): def generateExtensionRef(schemadoc, namespace): - global complexTypes - global attributeGroups - global groups - global elementTypes schema = '{http://www.w3.org/2001/XMLSchema}' for key, value in schemadoc.attrib.items(): @@ -376,10 +364,6 @@ def generateExtensionRef(schemadoc, namespace): def generateJsonRes(schemadoc, rootElement, namespace): - global complexTypes - global attributeGroups - global groups - global elementTypes schema = '{http://www.w3.org/2001/XMLSchema}' for key, value in schemadoc.attrib.items(): diff --git a/ESSArch_Core/exceptions.py b/ESSArch_Core/exceptions.py index dc203f554..6a27adf5e 100644 --- a/ESSArch_Core/exceptions.py +++ b/ESSArch_Core/exceptions.py @@ -18,12 +18,11 @@ class FileFormatNotAllowed(ESSArchException): class ValidationError(ESSArchException): def __init__(self, message, errors=None): - super().__init__(message) + self.errors = errors if errors is not None else [] + super().__init__(message, errors) - if errors is None: - errors = [] - - self.errors = errors + def __str__(self): + return str(self.args[0]) class Locked(APIException, ESSArchException): diff --git a/README.md b/README.md index bf76e9d7e..54f7cb6d7 100644 --- a/README.md +++ b/README.md @@ -48,8 +48,8 @@ Now whenever you run `git commit`, all hooks defined in `.pre-commit-config.yaml ## Resources - [Documentation](https://docs.essarch.org/) -- [ES Solutions website](http://essolutions.se) +- [ES Solutions website](https://essolutions.se) # Service and support -Service and support on ESSArch Core is regulated in maintenance contract with ES Solutions AB. A case is registered on the support portal http://projects.essolutions.se +Service and support on ESSArch Core is regulated in maintenance contract with ES Solutions AB. A case is registered on the support portal https://projects.essolutions.se diff --git a/requirements/base.txt b/requirements/base.txt index 1e36f07ca..ef3372bee 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -10,24 +10,24 @@ cryptography==50.0.2 daphne==4.2.3 dj-rest-auth[with-social]==7.2.0 django==5.2.19 -django-allauth==65.11.1 +django-allauth==65.22.1 django-cors-headers==4.9.0 django-countries-plus==2.2.0 django-csp==3.7 -django-environ==0.11.2 +django-environ==0.14.0 django-filter==26.2 django-groups-manager==1.3.0 django-guardian==3.5.2 django-languages-plus==2.1.1 -django-mptt==0.21.1 +django-mptt==0.22.0 django-nested-inline==0.4.6 django-picklefield==3.4.0 django-redis==7.0.0 django-relativity==0.2.6 djangorestframework==3.18.3 -django-json-widget==1.1.1 -django-proxy==1.2.2 -django-rest-knox==5.0.2 +django-json-widget==2.2.0 +django-proxy==1.3.0 +django-rest-knox==6.0.0 djangorestframework-simplejwt[crypto]==5.5.1 distro==1.9.0 docker==7.1.0 @@ -46,11 +46,10 @@ natsort==8.4.0 opf-fido==1.6.1 pyfakefs==6.3.2 pywin32==312 ; platform_system=='Windows' -redis==8.1.0 -regex==2026.11.9 +redis==8.2.0 +regex==2026.11.24 requests==2.34.2 requests-toolbelt==1.0.0 -setuptools==81.0.0 tenacity==9.2.1 warcio==1.7.4 -weasyprint==52.5 +weasyprint==70.0 diff --git a/requirements/dev.txt b/requirements/dev.txt index 8b5b38c5c..d42233207 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,4 +1,4 @@ -pywatchman==3.0.0 +pywatchman==4.0.0 watchdog==6.0.0 django-sslserver==0.22 sentry-sdk==2.14.0 diff --git a/requirements/docs.txt b/requirements/docs.txt index 442e1be4e..ac5db5116 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -1,6 +1,5 @@ -docutils==0.21.2 -sphinx-intl==2.3.1 -sphinx-rtd-theme==3.0.2 -sphinx==8.2.3 -sphinxcontrib-httpdomain==1.8.1 -sphinxcontrib-httpexample==1.3 +sphinx-intl==2.4.0 +sphinx-rtd-theme==3.1.0 +sphinx==9.2.0 +sphinxcontrib-httpdomain==2.2.1 +sphinxcontrib-httpexample==2.0 diff --git a/requirements/lint.txt b/requirements/lint.txt index ee83a3d15..f285e2b26 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -1,6 +1,6 @@ -doc8==1.1.2 -flake8==7.1.1 -flake8-assertive==2.1.0 -flake8-bugbear==24.8.19 -isort==5.13.2 -autopep8==2.3.1 +doc8==2.0.0 +flake8==7.5.0 +flake8-assertive==2.3.0 +flake8-bugbear==26.11.22 +isort==9.0.2 +autopep8==2.3.2 diff --git a/requirements/optional.txt b/requirements/optional.txt index 400581863..dfbd960eb 100644 --- a/requirements/optional.txt +++ b/requirements/optional.txt @@ -3,7 +3,7 @@ django-auto-logout==0.5.1 django-axes==6.5.2 pysaml2==7.5.5 djangosaml2==1.13.0 -unoserver==3.6 +unoserver==3.7 comtypes==1.5.0 ; platform_system=='Windows' wfastcgi==3.0.0 mod-wsgi==6.1.1