imio.smartweb.common 1.2.17__py3-none-any.whl → 1.2.18__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.
- imio/smartweb/common/rest/odwb.py +3 -0
- imio/smartweb/common/utils.py +0 -2
- imio.smartweb.common-1.2.18-py3.10-nspkg.pth +3 -0
- {imio.smartweb.common-1.2.17.dist-info → imio.smartweb.common-1.2.18.dist-info}/METADATA +16 -4
- {imio.smartweb.common-1.2.17.dist-info → imio.smartweb.common-1.2.18.dist-info}/RECORD +10 -10
- {imio.smartweb.common-1.2.17.dist-info → imio.smartweb.common-1.2.18.dist-info}/WHEEL +1 -1
- imio.smartweb.common-1.2.17-py3.11-nspkg.pth +0 -2
- {imio.smartweb.common-1.2.17.dist-info → imio.smartweb.common-1.2.18.dist-info}/LICENSE.GPL +0 -0
- {imio.smartweb.common-1.2.17.dist-info → imio.smartweb.common-1.2.18.dist-info}/LICENSE.rst +0 -0
- {imio.smartweb.common-1.2.17.dist-info → imio.smartweb.common-1.2.18.dist-info}/namespace_packages.txt +0 -0
- {imio.smartweb.common-1.2.17.dist-info → imio.smartweb.common-1.2.18.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
|
+
from imio.smartweb.common.utils import activate_sending_data_to_odwb_for_staging
|
|
3
4
|
from imio.smartweb.common.utils import is_staging_or_local
|
|
4
5
|
from plone import api
|
|
5
6
|
from plone.restapi.services import Service
|
|
@@ -30,6 +31,8 @@ class OdwbService(Service):
|
|
|
30
31
|
def available(self):
|
|
31
32
|
staging_or_local = is_staging_or_local()
|
|
32
33
|
if staging_or_local:
|
|
34
|
+
if activate_sending_data_to_odwb_for_staging() is True:
|
|
35
|
+
return True
|
|
33
36
|
logger.info(
|
|
34
37
|
"Don't send odwb data when we are in staging or local environment"
|
|
35
38
|
)
|
imio/smartweb/common/utils.py
CHANGED
|
@@ -184,8 +184,6 @@ def is_staging_or_local():
|
|
|
184
184
|
if scheme == "http" and re.search(pattern, netloc):
|
|
185
185
|
return True
|
|
186
186
|
elif scheme == "https" and "staging" in netloc:
|
|
187
|
-
if activate_sending_data_to_odwb_for_staging() is True:
|
|
188
|
-
return False
|
|
189
187
|
return True
|
|
190
188
|
else:
|
|
191
189
|
return False
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio',));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('imio', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio', types.ModuleType('imio'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
|
|
2
|
+
import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio',));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('imio', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio', types.ModuleType('imio'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
|
|
3
|
+
import sys, types, os;has_mfs = sys.version_info > (3, 5);p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio', 'smartweb'));importlib = has_mfs and __import__('importlib.util');has_mfs and __import__('importlib.machinery');m = has_mfs and sys.modules.setdefault('imio.smartweb', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio.smartweb', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio.smartweb', types.ModuleType('imio.smartweb'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p);m and setattr(sys.modules['imio'], 'smartweb', m)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: imio.smartweb.common
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.18
|
|
4
4
|
Summary: Common utilities, vocabularies, taxonomies for imio.smartweb & co products
|
|
5
5
|
Home-page: https://github.com/imio/imio.smartweb.common
|
|
6
6
|
Author: iMio
|
|
@@ -18,6 +18,8 @@ Classifier: Framework :: Plone :: 6.0
|
|
|
18
18
|
Classifier: Programming Language :: Python
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.8
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
21
23
|
Classifier: Operating System :: OS Independent
|
|
22
24
|
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
|
|
23
25
|
Requires-Python: >=3.8
|
|
@@ -28,8 +30,8 @@ Requires-Dist: z3c.jbot
|
|
|
28
30
|
Requires-Dist: z3c.unconfigure
|
|
29
31
|
Requires-Dist: beautifulsoup4
|
|
30
32
|
Requires-Dist: geopy
|
|
31
|
-
Requires-Dist: Products.GenericSetup >=1.8.2
|
|
32
|
-
Requires-Dist: plone.api >=1.8.4
|
|
33
|
+
Requires-Dist: Products.GenericSetup (>=1.8.2)
|
|
34
|
+
Requires-Dist: plone.api (>=1.8.4)
|
|
33
35
|
Requires-Dist: plone.restapi
|
|
34
36
|
Requires-Dist: plone.app.dexterity
|
|
35
37
|
Requires-Dist: plone.app.imagecropping
|
|
@@ -45,7 +47,7 @@ Requires-Dist: imio.smartweb.locales
|
|
|
45
47
|
Requires-Dist: more-itertools
|
|
46
48
|
Provides-Extra: test
|
|
47
49
|
Requires-Dist: plone.app.testing ; extra == 'test'
|
|
48
|
-
Requires-Dist: plone.testing >=5.0.0 ; extra == 'test'
|
|
50
|
+
Requires-Dist: plone.testing (>=5.0.0) ; extra == 'test'
|
|
49
51
|
Requires-Dist: plone.app.robotframework[debug] ; extra == 'test'
|
|
50
52
|
Requires-Dist: plone.restapi[test] ; extra == 'test'
|
|
51
53
|
Requires-Dist: freezegun ; extra == 'test'
|
|
@@ -161,6 +163,16 @@ Changelog
|
|
|
161
163
|
=========
|
|
162
164
|
|
|
163
165
|
|
|
166
|
+
1.2.18 (2024-07-01)
|
|
167
|
+
-------------------
|
|
168
|
+
|
|
169
|
+
- WEB-4088 : Refactor code for odwb staging availability
|
|
170
|
+
[boulch]
|
|
171
|
+
|
|
172
|
+
- GHA tests on Python 3.8 3.9 and 3.10
|
|
173
|
+
[remdub]
|
|
174
|
+
|
|
175
|
+
|
|
164
176
|
1.2.17 (2024-06-06)
|
|
165
177
|
-------------------
|
|
166
178
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
imio.smartweb.common-1.2.
|
|
1
|
+
imio.smartweb.common-1.2.18-py3.10-nspkg.pth,sha256=wnCUSUElqssZ5FI3x-9HqwD229HQ-bAuPoDUNJHmMtU,1684
|
|
2
2
|
imio/smartweb/common/__init__.py,sha256=Na9XBfEQUMrm2c5jbqQgwWeg40ih0aXVG1vT8NeAjMQ,2709
|
|
3
3
|
imio/smartweb/common/adapters.py,sha256=rLlObjqZm3hs2hgUT-LmJytwhT-E1rTvbpIi0mmKQqY,610
|
|
4
4
|
imio/smartweb/common/adapters.zcml,sha256=ndYNj0J_BFfVpX_7JhY2asSwLzXG-WmjLdfwL9hX_No,254
|
|
@@ -18,7 +18,7 @@ imio/smartweb/common/subscribers.py,sha256=pbPQJ1YrfPlYCfxLAJ5sOy_5OToAfs2egX68z
|
|
|
18
18
|
imio/smartweb/common/subscribers.zcml,sha256=8v2lqNNVAHlrh2G3jtjVgr3Asrw8WJLS9jSX5U6juFg,971
|
|
19
19
|
imio/smartweb/common/testing.py,sha256=GKlYMHJUSxZFVX0o_R_c_Au1VYlkd-GjykQqfONHv7I,1985
|
|
20
20
|
imio/smartweb/common/testing.zcml,sha256=7N-ALtklyWeLSzZmlxN2Tp-aZe_3An--w_6BGl1991E,172
|
|
21
|
-
imio/smartweb/common/utils.py,sha256=
|
|
21
|
+
imio/smartweb/common/utils.py,sha256=S4Kygk-ukllxNdNOLX6D0Zl5SDVoWaS2JqV7MbGuBkA,6952
|
|
22
22
|
imio/smartweb/common/vocabularies.py,sha256=QRIOWLOALzZDM92o1iUTWgDBBcrdd9BYz7miNjpYCDA,3835
|
|
23
23
|
imio/smartweb/common/vocabularies.zcml,sha256=iFJer5q3wabBp_EZivPPVUqI1_9w5P_Ft1RGJB5Yqxs,940
|
|
24
24
|
imio/smartweb/common/behaviors/__init__.py,sha256=iwhKnzeBJLKxpRVjvzwiRE63_zNpIBfaKLITauVph-0,24
|
|
@@ -71,7 +71,7 @@ imio/smartweb/common/profiles/testing/types/Folder.xml,sha256=RPxIPgViAK0GGGTPKb
|
|
|
71
71
|
imio/smartweb/common/profiles/uninstall/browserlayer.xml,sha256=glaCGlITwc36-1Fi2z0VCbLcoQ5GddkAhuW-SGYeZy8,130
|
|
72
72
|
imio/smartweb/common/rest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
73
|
imio/smartweb/common/rest/configure.zcml,sha256=8hQGCvo1EMGFe9cNUpGOcH7spKhUkglFRnRkd9IJ2eE,301
|
|
74
|
-
imio/smartweb/common/rest/odwb.py,sha256=
|
|
74
|
+
imio/smartweb/common/rest/odwb.py,sha256=zRZxowUaE76xlW_blc92vRCzToUpnzw3O5mxFXaeScU,2249
|
|
75
75
|
imio/smartweb/common/rest/search_filters.py,sha256=upZAZ6h50qiSXo0q22lUgNlcmX5elFtrIQs_jFBl1-s,3832
|
|
76
76
|
imio/smartweb/common/rest/utils.py,sha256=9zc5ge_DmVuexxN09c3U6QAITAI1s2hc0m6eZuylSxM,1269
|
|
77
77
|
imio/smartweb/common/sharing/__init__.py,sha256=I_cdzTAnsdb8tEO2kg2lzRkeA7wIGPqHKzu7LBxDwtk,56
|
|
@@ -135,10 +135,10 @@ imio/smartweb/common/viewlets/skip_to_content.pt,sha256=FFfTxvRl8V52FzFE6In6B34A
|
|
|
135
135
|
imio/smartweb/common/viewlets/skip_to_content.py,sha256=wm22NUf8Qh5uzz8p4vkLCdFNiDv9zUGAueRyXAIXQDo,496
|
|
136
136
|
imio/smartweb/common/widgets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
137
137
|
imio/smartweb/common/widgets/select.py,sha256=vfVdbecH7qDfJvWV6TfkpqocD6AA5G4yIq7XqSOuVNw,1142
|
|
138
|
-
imio.smartweb.common-1.2.
|
|
139
|
-
imio.smartweb.common-1.2.
|
|
140
|
-
imio.smartweb.common-1.2.
|
|
141
|
-
imio.smartweb.common-1.2.
|
|
142
|
-
imio.smartweb.common-1.2.
|
|
143
|
-
imio.smartweb.common-1.2.
|
|
144
|
-
imio.smartweb.common-1.2.
|
|
138
|
+
imio.smartweb.common-1.2.18.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
139
|
+
imio.smartweb.common-1.2.18.dist-info/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
|
|
140
|
+
imio.smartweb.common-1.2.18.dist-info/METADATA,sha256=P5mFU_mOorocwaR_kfMvdIOmohdXTlxFNG5yuMdbwFk,15423
|
|
141
|
+
imio.smartweb.common-1.2.18.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
|
142
|
+
imio.smartweb.common-1.2.18.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
|
|
143
|
+
imio.smartweb.common-1.2.18.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
|
|
144
|
+
imio.smartweb.common-1.2.18.dist-info/RECORD,,
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio',));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('imio', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio', types.ModuleType('imio'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p)
|
|
2
|
-
import sys, types, os;p = os.path.join(sys._getframe(1).f_locals['sitedir'], *('imio', 'smartweb'));importlib = __import__('importlib.util');__import__('importlib.machinery');m = sys.modules.setdefault('imio.smartweb', importlib.util.module_from_spec(importlib.machinery.PathFinder.find_spec('imio.smartweb', [os.path.dirname(p)])));m = m or sys.modules.setdefault('imio.smartweb', types.ModuleType('imio.smartweb'));mp = (m or []) and m.__dict__.setdefault('__path__',[]);(p not in mp) and mp.append(p);m and setattr(sys.modules['imio'], 'smartweb', m)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.17.dist-info → imio.smartweb.common-1.2.18.dist-info}/top_level.txt
RENAMED
|
File without changes
|