django-cms-qe 3.7.1__py3-none-any.whl → 3.7.2__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/views/redirect_to_page.py +5 -1
- {django_cms_qe-3.7.1.dist-info → django_cms_qe-3.7.2.dist-info}/METADATA +1 -1
- {django_cms_qe-3.7.1.dist-info → django_cms_qe-3.7.2.dist-info}/RECORD +6 -6
- {django_cms_qe-3.7.1.dist-info → django_cms_qe-3.7.2.dist-info}/WHEEL +0 -0
- {django_cms_qe-3.7.1.dist-info → django_cms_qe-3.7.2.dist-info}/licenses/LICENSE +0 -0
- {django_cms_qe-3.7.1.dist-info → django_cms_qe-3.7.2.dist-info}/top_level.txt +0 -0
cms_qe/views/redirect_to_page.py
CHANGED
|
@@ -9,7 +9,11 @@ class RedirectToPage(RedirectView):
|
|
|
9
9
|
|
|
10
10
|
url = "/"
|
|
11
11
|
|
|
12
|
+
def get_from_host(self):
|
|
13
|
+
return self.request.GET.get("fromhost")
|
|
14
|
+
|
|
12
15
|
def get_redirect_url(self, *args, **kwargs):
|
|
16
|
+
from_host = self.get_from_host()
|
|
13
17
|
for line in re.split("\n+", config.REDIRECT_TO_PAGE):
|
|
14
18
|
line = line.strip()
|
|
15
19
|
groups = re.match(r"(?P<path>\S+)(\s+(?P<host>\S+))?", line.strip())
|
|
@@ -17,7 +21,7 @@ class RedirectToPage(RedirectView):
|
|
|
17
21
|
continue
|
|
18
22
|
if groups['host'] is None:
|
|
19
23
|
return groups['path']
|
|
20
|
-
if groups['host'] ==
|
|
24
|
+
if groups['host'] == from_host:
|
|
21
25
|
return groups['path']
|
|
22
26
|
continue
|
|
23
27
|
return self.url
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: django-cms-qe
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.2
|
|
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.
|
|
@@ -89,7 +89,7 @@ cms_qe/views/__init__.py,sha256=3b5FCZ5MaqgiWglC7c5mfvP3WYLWTtNp3YpVb9BgYi8,106
|
|
|
89
89
|
cms_qe/views/errors.py,sha256=zUbCoyXy_MPsQv3UV1mgq-q2bwqPw9G4KgKU2-oue4w,3169
|
|
90
90
|
cms_qe/views/maintenance.py,sha256=Q410LCeeihRWhIJ-zzRpFSjfvA6xhgr6NJlNAoTNO2U,1658
|
|
91
91
|
cms_qe/views/monitoring.py,sha256=1r2s_jm6B6P0gEmiqjH9m3loUW3BmJivvpg6qcUOxVM,1909
|
|
92
|
-
cms_qe/views/redirect_to_page.py,sha256=
|
|
92
|
+
cms_qe/views/redirect_to_page.py,sha256=2HeGxTIKQQcfXsafdDz9F1fDHKGAbpiq1qKBKMvDL70,806
|
|
93
93
|
cms_qe/views/search_result.py,sha256=H1eMOmtONnWqBDsBvz3MartyHhh42vyi0jPoxWb0X8c,296
|
|
94
94
|
cms_qe/views/security.py,sha256=SNdJe4NSm1vuOGchVF3VqlmFDopt9xYoO-b4Y0UxkFU,1108
|
|
95
95
|
cms_qe/whoosh/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -3960,7 +3960,7 @@ cms_qe_video/templates/cms_qe/video/video_source_file.html,sha256=QJF5fs88s9Fznp
|
|
|
3960
3960
|
cms_qe_video/templates/cms_qe/video/video_widget.html,sha256=Yumciq6bGlAYI1lYx5j9V6IF8QYrncNYygPTkXEz6Wk,925
|
|
3961
3961
|
cms_qe_video/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3962
3962
|
cms_qe_video/templatetags/cms_qe_video.py,sha256=NR_mGv91J0rEreZrQjCzaaXSrZsKvrSas12wMJ-Dg24,1168
|
|
3963
|
-
django_cms_qe-3.7.
|
|
3963
|
+
django_cms_qe-3.7.2.dist-info/licenses/LICENSE,sha256=5wLaeUil0gfU9p8C4zn2Yu_PvZBNieUoYl0z9FcFWdA,1521
|
|
3964
3964
|
example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3965
3965
|
example/urls.py,sha256=H-IJsRGFVZGw6FD9gvK-0B0dLeSOsduziHvDvcHCQZ0,399
|
|
3966
3966
|
example/wsgi.py,sha256=lCKhvtFZlorSIA8qYEqc3pZ1Oflrz_Tc696MWJ62ue4,396
|
|
@@ -3981,7 +3981,7 @@ test_selenium/pages/cms/__init__.py,sha256=_qe4YZYaQbrXp7Szmmeo4TUSkXlE5Rozu8E3t
|
|
|
3981
3981
|
test_selenium/pages/cms/login.py,sha256=UPzJQcYff8NUAT4nvmfQoJQxzOJyPrJ_cKtH35NVfNg,521
|
|
3982
3982
|
test_selenium/pages/cms/page.py,sha256=YQnpZkopfVnhoyQKpRDGqjNeV6xUl-pEHjEcZ9HRiPk,489
|
|
3983
3983
|
test_selenium/pages/cms/wizard.py,sha256=yatbXH-rf1ap4O1hY0I13WikM3zkm_NrAiSK6bqENIU,545
|
|
3984
|
-
django_cms_qe-3.7.
|
|
3985
|
-
django_cms_qe-3.7.
|
|
3986
|
-
django_cms_qe-3.7.
|
|
3987
|
-
django_cms_qe-3.7.
|
|
3984
|
+
django_cms_qe-3.7.2.dist-info/METADATA,sha256=hgRfyIxLQM7jkrybpP0Mmfv3Q8p7MDmbI1o6mZhxoM8,5144
|
|
3985
|
+
django_cms_qe-3.7.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
3986
|
+
django_cms_qe-3.7.2.dist-info/top_level.txt,sha256=T4dauFwJy7FmxCy7WoQI3pPwiDessNB2LkfOAP76ssE,172
|
|
3987
|
+
django_cms_qe-3.7.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|