imio.smartweb.common 1.2.17__py3-none-any.whl → 1.2.20__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.
@@ -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
  )
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.common
3
- Version: 1.2.17
3
+ Version: 1.2.20
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
@@ -17,10 +17,11 @@ Classifier: Framework :: Plone :: Addon
17
17
  Classifier: Framework :: Plone :: 6.0
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.8
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.12
21
22
  Classifier: Operating System :: OS Independent
22
23
  Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
23
- Requires-Python: >=3.8
24
+ Requires-Python: >=3.10
24
25
  License-File: LICENSE.GPL
25
26
  License-File: LICENSE.rst
26
27
  Requires-Dist: setuptools
@@ -28,8 +29,8 @@ Requires-Dist: z3c.jbot
28
29
  Requires-Dist: z3c.unconfigure
29
30
  Requires-Dist: beautifulsoup4
30
31
  Requires-Dist: geopy
31
- Requires-Dist: Products.GenericSetup >=1.8.2
32
- Requires-Dist: plone.api >=1.8.4
32
+ Requires-Dist: Products.GenericSetup>=1.8.2
33
+ Requires-Dist: plone.api>=1.8.4
33
34
  Requires-Dist: plone.restapi
34
35
  Requires-Dist: plone.app.dexterity
35
36
  Requires-Dist: plone.app.imagecropping
@@ -44,12 +45,12 @@ Requires-Dist: iaweb.privacy
44
45
  Requires-Dist: imio.smartweb.locales
45
46
  Requires-Dist: more-itertools
46
47
  Provides-Extra: test
47
- Requires-Dist: plone.app.testing ; extra == 'test'
48
- Requires-Dist: plone.testing >=5.0.0 ; extra == 'test'
49
- Requires-Dist: plone.app.robotframework[debug] ; extra == 'test'
50
- Requires-Dist: plone.restapi[test] ; extra == 'test'
51
- Requires-Dist: freezegun ; extra == 'test'
52
- Requires-Dist: mock ; extra == 'test'
48
+ Requires-Dist: plone.app.testing; extra == "test"
49
+ Requires-Dist: plone.testing>=5.0.0; extra == "test"
50
+ Requires-Dist: plone.app.robotframework[debug]; extra == "test"
51
+ Requires-Dist: plone.restapi[test]; extra == "test"
52
+ Requires-Dist: freezegun; extra == "test"
53
+ Requires-Dist: mock; extra == "test"
53
54
 
54
55
  .. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
55
56
  If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
@@ -161,6 +162,32 @@ Changelog
161
162
  =========
162
163
 
163
164
 
165
+ 1.2.20 (2025-01-29)
166
+ -------------------
167
+
168
+ - Update Python classifiers to be compatible with Python 3.12
169
+ [remdub]
170
+
171
+ - Migrate to Plone 6.0.14
172
+ [boulch]
173
+
174
+
175
+ 1.2.19 (2025-01-09)
176
+ -------------------
177
+
178
+ - Nothing changed yet.
179
+
180
+
181
+ 1.2.18 (2024-07-01)
182
+ -------------------
183
+
184
+ - WEB-4088 : Refactor code for odwb staging availability
185
+ [boulch]
186
+
187
+ - GHA tests on Python 3.8 3.9 and 3.10
188
+ [remdub]
189
+
190
+
164
191
  1.2.17 (2024-06-06)
165
192
  -------------------
166
193
 
@@ -1,4 +1,4 @@
1
- imio.smartweb.common-1.2.17-py3.11-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
1
+ imio.smartweb.common-1.2.20-py3.12-nspkg.pth,sha256=XZ3YhlzwpUCC8tXtelHRqxVxo3NWomIiMsUfUshrbeE,1011
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=jzNLR41JVehAxqqQV2WaUiYkB1V6xpMpPGE-G3JJ7Pc,7041
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=36g6Hs_i6FfliKWA63ELlE3_89B_zp-p99Zo_BKGYhM,2072
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.17.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
139
- imio.smartweb.common-1.2.17.dist-info/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
140
- imio.smartweb.common-1.2.17.dist-info/METADATA,sha256=JSs5I9lmfEo-eKA4m96TnRIXC7FIYwANeUBFn9i6EdE,15154
141
- imio.smartweb.common-1.2.17.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
142
- imio.smartweb.common-1.2.17.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
143
- imio.smartweb.common-1.2.17.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
144
- imio.smartweb.common-1.2.17.dist-info/RECORD,,
138
+ imio.smartweb.common-1.2.20.dist-info/LICENSE.GPL,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
139
+ imio.smartweb.common-1.2.20.dist-info/LICENSE.rst,sha256=5dd78Fdt0e-oM2ICBrMpjHnT8vEP-jhBDF7akXni6B4,655
140
+ imio.smartweb.common-1.2.20.dist-info/METADATA,sha256=Q_m2tFHekzFxK84WQPMuMJpLryhVDtEbGFZWC51L1zs,15580
141
+ imio.smartweb.common-1.2.20.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
142
+ imio.smartweb.common-1.2.20.dist-info/namespace_packages.txt,sha256=Pg8AH8t9viMMW1hJbNZvTy_n2jXG2igIYUpon5RA4Js,19
143
+ imio.smartweb.common-1.2.20.dist-info/top_level.txt,sha256=ZktC0EGzThvMTAin9_q_41rzvvfMT2FYbP8pbhSLMSA,5
144
+ imio.smartweb.common-1.2.20.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5