imio.smartweb.common 1.2.9__tar.gz → 1.2.11__tar.gz
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-1.2.9 → imio.smartweb.common-1.2.11}/CHANGES.rst +18 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/PKG-INFO +22 -1
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/setup.py +1 -1
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/behaviors/topics.py +2 -2
- imio.smartweb.common-1.2.11/src/imio/smartweb/common/rest/odwb.py +67 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_rest.py +13 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/utils.py +29 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/vocabularies.py +10 -1
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio.smartweb.common.egg-info/PKG-INFO +22 -1
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio.smartweb.common.egg-info/SOURCES.txt +1 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/CONTRIBUTORS.rst +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/DEVELOP.rst +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/LICENSE.GPL +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/LICENSE.rst +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/MANIFEST.in +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/README.rst +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/docs/conf.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/docs/index.rst +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/requirements.txt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/setup.cfg +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/adapters.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/adapters.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/behaviors/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/behaviors/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/behaviors/iam.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/cropping.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/description.pt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/description.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/forms.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/overrides/plone.app.z3cform.templates.widget.pt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/privacy/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/privacy/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/privacy/form.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/privacy/utils.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/privacy/views.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/scaling.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/Makefile +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/package.json +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/patched.web3862.eea.faceted-jquery.min.js +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/smartweb-common-edit-compiled.css +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/smartweb-common-edit-compiled.js +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/smartweb-common-view-compiled.css +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/smartweb-common-view-compiled.js +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/src/edit.js +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/src/edit.less +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/src/view.js +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/src/view.less +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/static/webpack.config.js +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/caching.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/config.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/contact_utils.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/faceted/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/faceted/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/faceted/utils.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/faceted/widget.pt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/faceted/widget.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/indexers.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/indexers.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/interfaces.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/permissions.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/privacy.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/privacy.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/default/actions.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/default/browserlayer.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/default/catalog.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/default/metadata.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/default/registry.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/default/rolemap.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/testing/metadata.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/testing/registry.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/testing/types/Collection.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/testing/types/Document.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/testing/types/Folder.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles/uninstall/browserlayer.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/rest/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/rest/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/rest/search_filters.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/rest/utils.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/setuphandlers.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/sharing/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/sharing/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/sharing/localroles.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/sharing/permissions.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/sharing/permissions.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/subscribers.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/subscribers.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/testing.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/resources/image.png +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/resources/image_1400x800.png +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/resources/image_1800x700.png +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/robot/test_example.robot +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_cropping.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_description.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_forms.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_indexes.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_local_roles.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_permissions.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_privacy.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_robot.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_setup.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_subscribers.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_text.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_utils.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_viewlets.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/tests/test_vocabularies.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1007_to_1008/rolemap.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1008_to_1009/actions.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1009_to_1010/registry/tiny_nonbreakingspace.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/resources.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/scales.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/tinymce.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1011_to_1012/registry/bundles.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1013_to_1014/registry/tinymce.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1014_to_1015/registry/syndication.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1015_to_1016/registry/patched-faceted-jquery.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1016_to_1017/registry/scales.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1017_to_1018/registry.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1018_to_1019/registry/scales.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1022_to_1023/registry/scales.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1023_to_1024/registry/scales.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/profiles/1025_to_1026/registry/scales.xml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/upgrades/upgrades.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/__init__.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/analytics.pt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/colophon.pt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/colophon.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/configure.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/privacy.pt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/privacy.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/skip_to_content.pt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/viewlets/skip_to_content.py +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/vocabularies.zcml +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio.smartweb.common.egg-info/dependency_links.txt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio.smartweb.common.egg-info/namespace_packages.txt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio.smartweb.common.egg-info/not-zip-safe +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio.smartweb.common.egg-info/requires.txt +0 -0
- {imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio.smartweb.common.egg-info/top_level.txt +0 -0
|
@@ -2,6 +2,24 @@ Changelog
|
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
1.2.11 (2024-05-02)
|
|
6
|
+
-------------------
|
|
7
|
+
|
|
8
|
+
- WEB-4101 : Fix vocabulary terms translation (for Topics only - for the moment)
|
|
9
|
+
when used with `AjaxSelectFieldWidget`
|
|
10
|
+
[laulaz]
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
1.2.10 (2024-05-02)
|
|
14
|
+
-------------------
|
|
15
|
+
|
|
16
|
+
- WEB-4101 : Change Topics field widget to keep value ordering
|
|
17
|
+
[laulaz]
|
|
18
|
+
|
|
19
|
+
- WEB-4088 : Implement some odwb utils and generic classes
|
|
20
|
+
[boulch]
|
|
21
|
+
|
|
22
|
+
|
|
5
23
|
1.2.9 (2024-02-08)
|
|
6
24
|
------------------
|
|
7
25
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: imio.smartweb.common
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.11
|
|
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
|
|
@@ -10,6 +10,7 @@ Project-URL: PyPI, https://pypi.python.org/pypi/imio.smartweb.common
|
|
|
10
10
|
Project-URL: Source, https://github.com/imio/imio.smartweb.common
|
|
11
11
|
Project-URL: Tracker, https://github.com/imio/imio.smartweb.common/issues
|
|
12
12
|
Keywords: Python Plone CMS
|
|
13
|
+
Platform: UNKNOWN
|
|
13
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
15
|
Classifier: Environment :: Web Environment
|
|
15
16
|
Classifier: Framework :: Plone
|
|
@@ -135,6 +136,24 @@ Changelog
|
|
|
135
136
|
=========
|
|
136
137
|
|
|
137
138
|
|
|
139
|
+
1.2.11 (2024-05-02)
|
|
140
|
+
-------------------
|
|
141
|
+
|
|
142
|
+
- WEB-4101 : Fix vocabulary terms translation (for Topics only - for the moment)
|
|
143
|
+
when used with `AjaxSelectFieldWidget`
|
|
144
|
+
[laulaz]
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
1.2.10 (2024-05-02)
|
|
148
|
+
-------------------
|
|
149
|
+
|
|
150
|
+
- WEB-4101 : Change Topics field widget to keep value ordering
|
|
151
|
+
[laulaz]
|
|
152
|
+
|
|
153
|
+
- WEB-4088 : Implement some odwb utils and generic classes
|
|
154
|
+
[boulch]
|
|
155
|
+
|
|
156
|
+
|
|
138
157
|
1.2.9 (2024-02-08)
|
|
139
158
|
------------------
|
|
140
159
|
|
|
@@ -552,3 +571,5 @@ Changelog
|
|
|
552
571
|
|
|
553
572
|
- Initial release.
|
|
554
573
|
[boulch]
|
|
574
|
+
|
|
575
|
+
|
|
@@ -16,7 +16,7 @@ long_description = "\n\n".join(
|
|
|
16
16
|
|
|
17
17
|
setup(
|
|
18
18
|
name="imio.smartweb.common",
|
|
19
|
-
version="1.2.
|
|
19
|
+
version="1.2.11",
|
|
20
20
|
description="Common utilities, vocabularies, taxonomies for imio.smartweb & co products",
|
|
21
21
|
long_description=long_description,
|
|
22
22
|
# Get more from https://pypi.org/classifiers/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
3
|
from imio.smartweb.locales import SmartwebMessageFactory as _
|
|
4
|
-
from plone.app.z3cform.widget import
|
|
4
|
+
from plone.app.z3cform.widget import AjaxSelectFieldWidget
|
|
5
5
|
from plone.autoform import directives
|
|
6
6
|
from plone.autoform.interfaces import IFormFieldProvider
|
|
7
7
|
from plone.supermodel import model
|
|
@@ -21,4 +21,4 @@ class ITopics(model.Schema):
|
|
|
21
21
|
default=[],
|
|
22
22
|
required=False,
|
|
23
23
|
)
|
|
24
|
-
directives.widget(topics=
|
|
24
|
+
directives.widget(topics=AjaxSelectFieldWidget)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
from imio.smartweb.common.utils import is_staging_or_local
|
|
4
|
+
from plone import api
|
|
5
|
+
from plone.restapi.services import Service
|
|
6
|
+
from zope.interface import implementer
|
|
7
|
+
from zope.interface import Interface
|
|
8
|
+
|
|
9
|
+
import logging
|
|
10
|
+
import requests
|
|
11
|
+
|
|
12
|
+
logger = logging.getLogger("imio.smartweb.common")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class IOdwbService(Interface):
|
|
16
|
+
|
|
17
|
+
def available():
|
|
18
|
+
""" """
|
|
19
|
+
|
|
20
|
+
def reply():
|
|
21
|
+
""" """
|
|
22
|
+
|
|
23
|
+
def remove():
|
|
24
|
+
""" """
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
@implementer(IOdwbService)
|
|
28
|
+
class OdwbService(Service):
|
|
29
|
+
|
|
30
|
+
def available(self):
|
|
31
|
+
staging_or_local = is_staging_or_local()
|
|
32
|
+
if staging_or_local:
|
|
33
|
+
logger.info(
|
|
34
|
+
"Don't send odwb data when we are in staging or local environment"
|
|
35
|
+
)
|
|
36
|
+
return not staging_or_local
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class OdwbBaseEndpointGet(OdwbService):
|
|
40
|
+
|
|
41
|
+
def __init__(self, context, request, odwb_imio_service, odbw_pushkey):
|
|
42
|
+
self.odwb_api_push_url = "https://www.odwb.be/api/push/1.0"
|
|
43
|
+
self.odwb_imio_service = odwb_imio_service
|
|
44
|
+
self.odwb_pushkey = api.portal.get_registry_record(odbw_pushkey)
|
|
45
|
+
|
|
46
|
+
self.context = context
|
|
47
|
+
self.request = request
|
|
48
|
+
self.__datas__ = []
|
|
49
|
+
|
|
50
|
+
def odwb_query(self, url, payload, headers=None):
|
|
51
|
+
if headers is None:
|
|
52
|
+
headers = {"Content-Type": "application/json"}
|
|
53
|
+
try:
|
|
54
|
+
response = requests.post(url, headers=headers, data=payload)
|
|
55
|
+
return response.text
|
|
56
|
+
except requests.exceptions.ConnectionError as e:
|
|
57
|
+
logger.error("ODWB : Connection error: %s", e)
|
|
58
|
+
return "ODWB : Connection error occurred"
|
|
59
|
+
except requests.exceptions.Timeout as e:
|
|
60
|
+
logger.error("ODWB : Request timed out: %s", e)
|
|
61
|
+
return "ODWB : Request timed out"
|
|
62
|
+
except requests.exceptions.HTTPError as e:
|
|
63
|
+
logger.error("ODWB : HTTP error occurred: %s", e)
|
|
64
|
+
return "ODWB : HTTP error occurred"
|
|
65
|
+
except Exception as e:
|
|
66
|
+
logger.error("ODWB : An unexpected error occurred: %s", e)
|
|
67
|
+
return "ODWB : Unexpected error occurred"
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
|
+
from imio.smartweb.common.rest.odwb import OdwbService
|
|
3
4
|
from imio.smartweb.common.rest.utils import get_restapi_query_lang
|
|
4
5
|
from imio.smartweb.common.testing import IMIO_SMARTWEB_COMMON_ACCEPTANCE_TESTING
|
|
5
6
|
from plone import api
|
|
6
7
|
from plone.app.testing import setRoles
|
|
7
8
|
from plone.app.testing import TEST_USER_ID
|
|
8
9
|
from plone.restapi.testing import RelativeSession
|
|
10
|
+
from unittest.mock import patch
|
|
9
11
|
|
|
10
12
|
import transaction
|
|
11
13
|
import unittest
|
|
@@ -117,3 +119,14 @@ class TestREST(unittest.TestCase):
|
|
|
117
119
|
self.assertNotIn("has_leadimage", json)
|
|
118
120
|
self.assertNotIn("start", json)
|
|
119
121
|
self.assertNotIn("UID", json)
|
|
122
|
+
|
|
123
|
+
@patch("imio.smartweb.common.utils.api.portal.get")
|
|
124
|
+
def test_odwb_service_environnement(self, mock_get):
|
|
125
|
+
mock_portal = mock_get.return_value
|
|
126
|
+
mock_portal.absolute_url.return_value = "http://localhost:8080"
|
|
127
|
+
endpoint = OdwbService()
|
|
128
|
+
self.assertEqual(endpoint.available(), False)
|
|
129
|
+
|
|
130
|
+
mock_portal.absolute_url.return_value = "https://www.production.be"
|
|
131
|
+
endpoint = OdwbService()
|
|
132
|
+
self.assertEqual(endpoint.available(), True)
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/utils.py
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
|
+
from Acquisition import aq_parent
|
|
3
4
|
from imio.smartweb.common.config import TRANSLATED_VOCABULARIES
|
|
4
5
|
from imio.smartweb.common.interfaces import ICropping
|
|
5
6
|
from imio.smartweb.locales import SmartwebMessageFactory as _
|
|
@@ -9,6 +10,7 @@ from plone.dexterity.utils import iterSchemata
|
|
|
9
10
|
from plone.formwidget.geolocation.geolocation import Geolocation
|
|
10
11
|
from plone.namedfile.field import NamedBlobImage
|
|
11
12
|
from plone.namedfile.interfaces import IAvailableSizes
|
|
13
|
+
from urllib.parse import urlparse
|
|
12
14
|
from zope.component import getUtility
|
|
13
15
|
from zope.i18n import translate
|
|
14
16
|
from zope.schema import getFields
|
|
@@ -168,3 +170,30 @@ def clean_invisible_char(value):
|
|
|
168
170
|
|
|
169
171
|
def is_log_active():
|
|
170
172
|
return api.portal.get_registry_record("imio.smartweb.common.log", default=False)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
# todo: create staging/prod env var. instead of using parsed_url
|
|
176
|
+
def is_staging_or_local():
|
|
177
|
+
portal = api.portal.get()
|
|
178
|
+
portal_url = portal.absolute_url()
|
|
179
|
+
parsed_url = urlparse(portal_url)
|
|
180
|
+
scheme = parsed_url.scheme
|
|
181
|
+
netloc = parsed_url.netloc
|
|
182
|
+
elem = ["localhost", "127.0.0.1", "nohost"]
|
|
183
|
+
pattern = "|".join(map(re.escape, elem))
|
|
184
|
+
if scheme == "http" and re.search(pattern, netloc):
|
|
185
|
+
return True
|
|
186
|
+
elif scheme == "https" and "staging" in netloc:
|
|
187
|
+
return True
|
|
188
|
+
else:
|
|
189
|
+
return False
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
def get_parent_of_type(context, content_type):
|
|
193
|
+
# Traverse up the hierarchy until we find an object with the specified content type
|
|
194
|
+
parent = context
|
|
195
|
+
while parent is not None:
|
|
196
|
+
if getattr(parent, "portal_type", None) == content_type:
|
|
197
|
+
return parent
|
|
198
|
+
parent = aq_parent(parent)
|
|
199
|
+
return None
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/vocabularies.py
RENAMED
|
@@ -5,6 +5,7 @@ from plone import api
|
|
|
5
5
|
from plone.i18n.normalizer.interfaces import IIDNormalizer
|
|
6
6
|
from plone.registry.interfaces import IRegistry
|
|
7
7
|
from zope.component import getUtility
|
|
8
|
+
from zope.i18n import translate
|
|
8
9
|
from zope.i18n.locales import locales
|
|
9
10
|
from zope.schema.vocabulary import SimpleTerm
|
|
10
11
|
from zope.schema.vocabulary import SimpleVocabulary
|
|
@@ -14,6 +15,7 @@ import json
|
|
|
14
15
|
|
|
15
16
|
class TopicsVocabularyFactory:
|
|
16
17
|
def __call__(self, context=None):
|
|
18
|
+
lang = api.portal.get_current_language()[:2]
|
|
17
19
|
topics = [
|
|
18
20
|
("entertainment", _("Entertainment")),
|
|
19
21
|
("agriculture", _("Agriculture")),
|
|
@@ -33,7 +35,14 @@ class TopicsVocabularyFactory:
|
|
|
33
35
|
("territory_public_space", _("Territory and public space")),
|
|
34
36
|
("tourism", _("Tourism")),
|
|
35
37
|
]
|
|
36
|
-
terms = [
|
|
38
|
+
terms = [
|
|
39
|
+
SimpleTerm(
|
|
40
|
+
value=t[0],
|
|
41
|
+
token=t[0],
|
|
42
|
+
title=translate(t[1], target_language=lang),
|
|
43
|
+
)
|
|
44
|
+
for t in topics
|
|
45
|
+
]
|
|
37
46
|
return SimpleVocabulary(terms)
|
|
38
47
|
|
|
39
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: imio.smartweb.common
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.11
|
|
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
|
|
@@ -10,6 +10,7 @@ Project-URL: PyPI, https://pypi.python.org/pypi/imio.smartweb.common
|
|
|
10
10
|
Project-URL: Source, https://github.com/imio/imio.smartweb.common
|
|
11
11
|
Project-URL: Tracker, https://github.com/imio/imio.smartweb.common/issues
|
|
12
12
|
Keywords: Python Plone CMS
|
|
13
|
+
Platform: UNKNOWN
|
|
13
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
15
|
Classifier: Environment :: Web Environment
|
|
15
16
|
Classifier: Framework :: Plone
|
|
@@ -135,6 +136,24 @@ Changelog
|
|
|
135
136
|
=========
|
|
136
137
|
|
|
137
138
|
|
|
139
|
+
1.2.11 (2024-05-02)
|
|
140
|
+
-------------------
|
|
141
|
+
|
|
142
|
+
- WEB-4101 : Fix vocabulary terms translation (for Topics only - for the moment)
|
|
143
|
+
when used with `AjaxSelectFieldWidget`
|
|
144
|
+
[laulaz]
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
1.2.10 (2024-05-02)
|
|
148
|
+
-------------------
|
|
149
|
+
|
|
150
|
+
- WEB-4101 : Change Topics field widget to keep value ordering
|
|
151
|
+
[laulaz]
|
|
152
|
+
|
|
153
|
+
- WEB-4088 : Implement some odwb utils and generic classes
|
|
154
|
+
[boulch]
|
|
155
|
+
|
|
156
|
+
|
|
138
157
|
1.2.9 (2024-02-08)
|
|
139
158
|
------------------
|
|
140
159
|
|
|
@@ -552,3 +571,5 @@ Changelog
|
|
|
552
571
|
|
|
553
572
|
- Initial release.
|
|
554
573
|
[boulch]
|
|
574
|
+
|
|
575
|
+
|
|
@@ -88,6 +88,7 @@ src/imio/smartweb/common/profiles/testing/types/Folder.xml
|
|
|
88
88
|
src/imio/smartweb/common/profiles/uninstall/browserlayer.xml
|
|
89
89
|
src/imio/smartweb/common/rest/__init__.py
|
|
90
90
|
src/imio/smartweb/common/rest/configure.zcml
|
|
91
|
+
src/imio/smartweb/common/rest/odwb.py
|
|
91
92
|
src/imio/smartweb/common/rest/search_filters.py
|
|
92
93
|
src/imio/smartweb/common/rest/utils.py
|
|
93
94
|
src/imio/smartweb/common/sharing/__init__.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/__init__.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/adapters.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/adapters.zcml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/behaviors/iam.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/browser/forms.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/caching.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/config.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/configure.zcml
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/contact_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/faceted/utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/indexers.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/indexers.zcml
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/interfaces.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/permissions.zcml
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/privacy.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/privacy.zcml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/profiles.zcml
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/rest/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/rest/utils.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/setuphandlers.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/subscribers.py
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/subscribers.zcml
RENAMED
|
File without changes
|
{imio.smartweb.common-1.2.9 → imio.smartweb.common-1.2.11}/src/imio/smartweb/common/testing.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|