django-cms-qe 3.4.1__py3-none-any.whl → 3.4.3__py3-none-any.whl

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.
cms_qe/haystack/forms.py CHANGED
@@ -25,4 +25,7 @@ class HaystackSearchForm(ModelSearchForm):
25
25
  if self.load_all:
26
26
  sqs = sqs.load_all()
27
27
 
28
- return sqs
28
+ if sqs.count():
29
+ return sqs
30
+
31
+ return super().search()
@@ -2,6 +2,7 @@ from django.conf import settings
2
2
  from django.contrib.sites.models import Site
3
3
  from django.core.cache import cache
4
4
  from django.http import HttpRequest, HttpResponse
5
+ from django.utils.module_loading import import_string
5
6
  from django.views import View
6
7
 
7
8
  from cms_qe.signals import run_subprocess
@@ -21,6 +22,11 @@ class HealthCheckView(View):
21
22
  cache.set(key, 'OK', 2)
22
23
  if cache.get(key) != 'OK':
23
24
  raise RuntimeError('cache')
25
+ # More checks if defined in HEALTHCHECK_FUNCTIONS = ["path1.to.fnc, "path2.to.fnc"].
26
+ if hasattr(settings, "HEALTHCHECK_FUNCTIONS"):
27
+ for path in settings.HEALTHCHECK_FUNCTIONS:
28
+ fnc = import_string(path)
29
+ fnc(request, *args, **kwargs)
24
30
  return HttpResponse("OK", content_type="text/plain")
25
31
 
26
32
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: django-cms-qe
3
- Version: 3.4.1
3
+ Version: 3.4.3
4
4
  Summary: Django CMS Quick & Easy provides all important modules to run new page withouta lot of coding. Aims to do it very easily and securely.
5
5
  Home-page: https://websites.pages.nic.cz/django-cms-qe
6
6
  Author: CZ.NIC, z.s.p.o.
@@ -26,55 +26,68 @@ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
26
26
  Requires-Python: >=3.9
27
27
  Description-Content-Type: text/markdown
28
28
  License-File: LICENSE
29
+ Requires-Dist: Django~=4.2
29
30
  Requires-Dist: easy-thumbnails[svg]
30
- Requires-Dist: djangocms-frontend ~=1.1
31
- Requires-Dist: django-csp ~=3.7
32
- Requires-Dist: djangocms-picture ~=4.0
33
- Requires-Dist: django-axes ~=6.0
34
- Requires-Dist: django-constance[database] ~=2.9
35
- Requires-Dist: djangocms-file ~=3.0
36
- Requires-Dist: django-import-export ~=3.2
37
- Requires-Dist: django-mail-queue ~=3.2
38
- Requires-Dist: djangocms-icon ~=2.0
39
- Requires-Dist: djangocms-googlemap ~=2.0
40
- Requires-Dist: django-tablib ~=3.2
41
- Requires-Dist: mailchimp3 ~=3.0
42
- Requires-Dist: argon2-cffi ~=21.3
31
+ Requires-Dist: djangocms-frontend~=1.1
32
+ Requires-Dist: django-csp~=3.7
33
+ Requires-Dist: djangocms-picture~=4.0
34
+ Requires-Dist: django-axes~=6.0
35
+ Requires-Dist: django-constance[database]~=2.9
36
+ Requires-Dist: djangocms-file~=3.0
37
+ Requires-Dist: django-import-export~=3.2
38
+ Requires-Dist: django-mail-queue==3.2.5
39
+ Requires-Dist: djangocms-icon~=2.0
40
+ Requires-Dist: djangocms-googlemap~=2.0
41
+ Requires-Dist: django-tablib~=3.2
42
+ Requires-Dist: mailchimp3~=3.0
43
+ Requires-Dist: argon2-cffi~=21.3
43
44
  Requires-Dist: djangocms-aldryn-forms[captcha]
44
45
  Requires-Dist: djangocms-aldryn-search
45
- Requires-Dist: django-haystack ~=3.2
46
- Requires-Dist: pymemcache ~=4.0
47
- Requires-Dist: whoosh ~=2.7
48
- Provides-Extra: build
49
- Requires-Dist: Jinja2 <3.1.0 ; extra == 'build'
50
- Requires-Dist: Sphinx ==1.8.5 ; extra == 'build'
46
+ Requires-Dist: django-haystack~=3.2
47
+ Requires-Dist: pymemcache~=4.0
48
+ Requires-Dist: whoosh~=2.7
51
49
  Provides-Extra: dev
52
- Requires-Dist: django-debug-toolbar ~=4.1 ; extra == 'dev'
53
- Requires-Dist: django-extensions ~=3.2 ; extra == 'dev'
50
+ Requires-Dist: django-debug-toolbar~=4.1; extra == "dev"
51
+ Requires-Dist: django-extensions~=3.2; extra == "dev"
52
+ Provides-Extra: test
53
+ Requires-Dist: flake8; extra == "test"
54
+ Requires-Dist: isort; extra == "test"
55
+ Requires-Dist: mypy; extra == "test"
56
+ Requires-Dist: pylint; extra == "test"
57
+ Requires-Dist: pylint-django; extra == "test"
58
+ Requires-Dist: pytest~=6.2; extra == "test"
59
+ Requires-Dist: pytest-data==0.4; extra == "test"
60
+ Requires-Dist: pytest-django==3.9.0; extra == "test"
61
+ Requires-Dist: pytest-env==0.6.2; extra == "test"
62
+ Requires-Dist: pytest-pythonpath==0.7.3; extra == "test"
63
+ Requires-Dist: pytest-sugar==0.9.3; extra == "test"
64
+ Requires-Dist: pytest-watch==4.2.0; extra == "test"
65
+ Requires-Dist: PyVirtualDisplay==1.3.2; extra == "test"
66
+ Requires-Dist: webdriverwrapper==2.8.0; extra == "test"
67
+ Requires-Dist: django-simple-captcha==0.5.14; extra == "test"
68
+ Requires-Dist: testfixtures; extra == "test"
69
+ Requires-Dist: tzdata; extra == "test"
70
+ Provides-Extra: build
71
+ Requires-Dist: Jinja2<3.1.0; extra == "build"
72
+ Requires-Dist: Sphinx==1.8.5; extra == "build"
73
+ Provides-Extra: psql
74
+ Requires-Dist: psycopg2; extra == "psql"
54
75
  Provides-Extra: mysql
55
- Requires-Dist: mysqlclient ~=2.2 ; extra == 'mysql'
76
+ Requires-Dist: mysqlclient~=2.2; extra == "mysql"
56
77
  Provides-Extra: newsblog
57
- Requires-Dist: djangocms-aldryn-newsblog ; extra == 'newsblog'
58
- Provides-Extra: psql
59
- Requires-Dist: psycopg2 ; extra == 'psql'
60
- Provides-Extra: test
61
- Requires-Dist: flake8 ; extra == 'test'
62
- Requires-Dist: isort ; extra == 'test'
63
- Requires-Dist: mypy ; extra == 'test'
64
- Requires-Dist: pylint ; extra == 'test'
65
- Requires-Dist: pylint-django ; extra == 'test'
66
- Requires-Dist: pytest ~=6.2 ; extra == 'test'
67
- Requires-Dist: pytest-data ==0.4 ; extra == 'test'
68
- Requires-Dist: pytest-django ==3.9.0 ; extra == 'test'
69
- Requires-Dist: pytest-env ==0.6.2 ; extra == 'test'
70
- Requires-Dist: pytest-pythonpath ==0.7.3 ; extra == 'test'
71
- Requires-Dist: pytest-sugar ==0.9.3 ; extra == 'test'
72
- Requires-Dist: pytest-watch ==4.2.0 ; extra == 'test'
73
- Requires-Dist: PyVirtualDisplay ==1.3.2 ; extra == 'test'
74
- Requires-Dist: webdriverwrapper ==2.8.0 ; extra == 'test'
75
- Requires-Dist: django-simple-captcha ==0.5.14 ; extra == 'test'
76
- Requires-Dist: testfixtures ; extra == 'test'
77
- Requires-Dist: tzdata ; extra == 'test'
78
+ Requires-Dist: djangocms-aldryn-newsblog; extra == "newsblog"
79
+ Dynamic: author
80
+ Dynamic: author-email
81
+ Dynamic: classifier
82
+ Dynamic: description
83
+ Dynamic: description-content-type
84
+ Dynamic: home-page
85
+ Dynamic: keywords
86
+ Dynamic: license
87
+ Dynamic: provides-extra
88
+ Dynamic: requires-dist
89
+ Dynamic: requires-python
90
+ Dynamic: summary
78
91
 
79
92
  # Django CMS QE
80
93
 
@@ -30,7 +30,7 @@ cms_qe/boilerplates/bootstrap3/templates/cms_qe/error.html,sha256=gHFQbT2KPAwnho
30
30
  cms_qe/boilerplates/bootstrap3/templates/cms_qe/home.html,sha256=swbpKbL2KJhDdnuLRUelfQn7xPxolzYye4fLrLjFVOM,1465
31
31
  cms_qe/boilerplates/bootstrap3/templates/cmsplugin_filer_folder/plugins/folder/gallery.html,sha256=ZAbkXcsJ6mwAJt0vQNd55ZWB-BhJ_gtvtbnKx8PysV8,3107
32
32
  cms_qe/haystack/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- cms_qe/haystack/forms.py,sha256=HFBbmq6oH-Ao85xuqbfLfv1Bg-UyzT6Lug7BzHSyZ-I,851
33
+ cms_qe/haystack/forms.py,sha256=4FyieMfxfE6h2dcUaWAZJ18rEOAcnMVb2zLZ60iCbVA,912
34
34
  cms_qe/haystack/highlighting.py,sha256=VRECODAO-AGcdon2ggz-Epo41HGmReeUuQFrF_3Per8,3562
35
35
  cms_qe/haystack/inputs.py,sha256=GhgmgKRe74nGJvXSVUBy1_tFxop6NuguriVybddSunA,129
36
36
  cms_qe/haystack/query.py,sha256=bpxIcAOg_LVSa-st0ml-4Oa7gXb_NFMHj8iPCu5jui0,442
@@ -80,7 +80,7 @@ cms_qe/templatetags/cms_qe_filters.py,sha256=ciYCXLuMVde-f_-B_7a5mHfAJPWPMxYEUMg
80
80
  cms_qe/templatetags/kwacros.py,sha256=r2oHLltu8BgKKlrpgzXgvLjbIqwcrH13Lww3zTF-nr8,6275
81
81
  cms_qe/views/__init__.py,sha256=3b5FCZ5MaqgiWglC7c5mfvP3WYLWTtNp3YpVb9BgYi8,106
82
82
  cms_qe/views/errors.py,sha256=zUbCoyXy_MPsQv3UV1mgq-q2bwqPw9G4KgKU2-oue4w,3169
83
- cms_qe/views/maintenance.py,sha256=rBfovOGETlfGNF7jlv-vuTEfjZIb5x9dYCSIyFTgHgQ,1312
83
+ cms_qe/views/maintenance.py,sha256=Q410LCeeihRWhIJ-zzRpFSjfvA6xhgr6NJlNAoTNO2U,1658
84
84
  cms_qe/views/monitoring.py,sha256=1r2s_jm6B6P0gEmiqjH9m3loUW3BmJivvpg6qcUOxVM,1909
85
85
  cms_qe/views/search_result.py,sha256=H1eMOmtONnWqBDsBvz3MartyHhh42vyi0jPoxWb0X8c,296
86
86
  cms_qe/views/security.py,sha256=SNdJe4NSm1vuOGchVF3VqlmFDopt9xYoO-b4Y0UxkFU,1108
@@ -3971,8 +3971,8 @@ test_selenium/pages/cms/__init__.py,sha256=_qe4YZYaQbrXp7Szmmeo4TUSkXlE5Rozu8E3t
3971
3971
  test_selenium/pages/cms/login.py,sha256=UPzJQcYff8NUAT4nvmfQoJQxzOJyPrJ_cKtH35NVfNg,521
3972
3972
  test_selenium/pages/cms/page.py,sha256=YQnpZkopfVnhoyQKpRDGqjNeV6xUl-pEHjEcZ9HRiPk,489
3973
3973
  test_selenium/pages/cms/wizard.py,sha256=yatbXH-rf1ap4O1hY0I13WikM3zkm_NrAiSK6bqENIU,545
3974
- django_cms_qe-3.4.1.dist-info/LICENSE,sha256=5wLaeUil0gfU9p8C4zn2Yu_PvZBNieUoYl0z9FcFWdA,1521
3975
- django_cms_qe-3.4.1.dist-info/METADATA,sha256=4GwpR4Vo-XJx0k4xZRWxwjzjr4i4DF3IIYEImvYNW_8,4677
3976
- django_cms_qe-3.4.1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
3977
- django_cms_qe-3.4.1.dist-info/top_level.txt,sha256=T4dauFwJy7FmxCy7WoQI3pPwiDessNB2LkfOAP76ssE,172
3978
- django_cms_qe-3.4.1.dist-info/RECORD,,
3974
+ django_cms_qe-3.4.3.dist-info/LICENSE,sha256=5wLaeUil0gfU9p8C4zn2Yu_PvZBNieUoYl0z9FcFWdA,1521
3975
+ django_cms_qe-3.4.3.dist-info/METADATA,sha256=1TtNoqtkeerKjgX5LfqtXiYcXAfTNoS0dvufzTZ4yVI,4907
3976
+ django_cms_qe-3.4.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
3977
+ django_cms_qe-3.4.3.dist-info/top_level.txt,sha256=T4dauFwJy7FmxCy7WoQI3pPwiDessNB2LkfOAP76ssE,172
3978
+ django_cms_qe-3.4.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.2.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5