imio.smartweb.common 1.2.16__tar.gz → 1.2.18__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.
Files changed (158) hide show
  1. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/CHANGES.rst +18 -0
  2. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/PKG-INFO +22 -28
  3. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/setup.py +3 -1
  4. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/behaviors/topics.py +2 -2
  5. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/rest/odwb.py +3 -0
  6. imio.smartweb.common-1.2.18/src/imio/smartweb/common/tests/test_widgets.py +61 -0
  7. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/utils.py +0 -2
  8. imio.smartweb.common-1.2.18/src/imio/smartweb/common/widgets/__init__.py +0 -0
  9. imio.smartweb.common-1.2.18/src/imio/smartweb/common/widgets/select.py +31 -0
  10. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio.smartweb.common.egg-info/PKG-INFO +22 -28
  11. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio.smartweb.common.egg-info/SOURCES.txt +4 -1
  12. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/CONTRIBUTORS.rst +0 -0
  13. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/DEVELOP.rst +0 -0
  14. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/LICENSE.GPL +0 -0
  15. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/LICENSE.rst +0 -0
  16. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/MANIFEST.in +0 -0
  17. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/README.rst +0 -0
  18. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/docs/conf.py +0 -0
  19. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/docs/index.rst +0 -0
  20. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/requirements.txt +0 -0
  21. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/setup.cfg +0 -0
  22. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/__init__.py +0 -0
  23. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/__init__.py +0 -0
  24. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/__init__.py +0 -0
  25. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/adapters.py +0 -0
  26. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/adapters.zcml +0 -0
  27. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/behaviors/__init__.py +0 -0
  28. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/behaviors/configure.zcml +0 -0
  29. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/behaviors/iam.py +0 -0
  30. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/__init__.py +0 -0
  31. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/collective_taxonomy_controlpanel.py +0 -0
  32. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/configure.zcml +0 -0
  33. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/cropping.py +0 -0
  34. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/description.pt +0 -0
  35. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/description.py +0 -0
  36. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/forms.py +0 -0
  37. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/overrides/plone.app.z3cform.templates.widget.pt +0 -0
  38. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/privacy/__init__.py +0 -0
  39. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/privacy/configure.zcml +0 -0
  40. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/privacy/form.py +0 -0
  41. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/privacy/utils.py +0 -0
  42. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/privacy/views.py +0 -0
  43. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/scaling.py +0 -0
  44. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/Makefile +0 -0
  45. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/package.json +0 -0
  46. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/smartweb-common-edit-compiled.css +0 -0
  47. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/smartweb-common-edit-compiled.js +0 -0
  48. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/smartweb-common-view-compiled.css +0 -0
  49. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/smartweb-common-view-compiled.js +0 -0
  50. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/src/edit.js +0 -0
  51. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/src/edit.less +0 -0
  52. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/src/view.js +0 -0
  53. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/src/view.less +0 -0
  54. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/static/webpack.config.js +0 -0
  55. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/browser/vocabulary.py +0 -0
  56. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/caching.py +0 -0
  57. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/config.py +0 -0
  58. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/configure.zcml +0 -0
  59. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/contact_utils.py +0 -0
  60. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/faceted/__init__.py +0 -0
  61. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/faceted/configure.zcml +0 -0
  62. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/faceted/utils.py +0 -0
  63. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/faceted/widget.pt +0 -0
  64. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/faceted/widget.py +0 -0
  65. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/indexers.py +0 -0
  66. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/indexers.zcml +0 -0
  67. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/interfaces.py +0 -0
  68. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/permissions.zcml +0 -0
  69. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/privacy.py +0 -0
  70. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/privacy.zcml +0 -0
  71. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/default/actions.xml +0 -0
  72. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/default/browserlayer.xml +0 -0
  73. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/default/catalog.xml +0 -0
  74. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/default/metadata.xml +0 -0
  75. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/default/registry.xml +0 -0
  76. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/default/rolemap.xml +0 -0
  77. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/testing/catalog.xml +0 -0
  78. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/testing/metadata.xml +0 -0
  79. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/testing/registry.xml +0 -0
  80. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/testing/types/Collection.xml +0 -0
  81. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/testing/types/Document.xml +0 -0
  82. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/testing/types/Folder.xml +0 -0
  83. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles/uninstall/browserlayer.xml +0 -0
  84. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/profiles.zcml +0 -0
  85. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/rest/__init__.py +0 -0
  86. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/rest/configure.zcml +0 -0
  87. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/rest/search_filters.py +0 -0
  88. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/rest/utils.py +0 -0
  89. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/setuphandlers.py +0 -0
  90. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/sharing/__init__.py +0 -0
  91. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/sharing/configure.zcml +0 -0
  92. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/sharing/localroles.py +0 -0
  93. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/sharing/permissions.py +0 -0
  94. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/sharing/permissions.zcml +0 -0
  95. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/subscribers.py +0 -0
  96. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/subscribers.zcml +0 -0
  97. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/testing.py +0 -0
  98. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/testing.zcml +0 -0
  99. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/__init__.py +0 -0
  100. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/resources/image.png +0 -0
  101. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/resources/image_1400x800.png +0 -0
  102. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/resources/image_1800x700.png +0 -0
  103. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/robot/test_example.robot +0 -0
  104. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_cropping.py +0 -0
  105. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_description.py +0 -0
  106. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_forms.py +0 -0
  107. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_indexes.py +0 -0
  108. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_local_roles.py +0 -0
  109. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_permissions.py +0 -0
  110. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_privacy.py +0 -0
  111. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_rest.py +0 -0
  112. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_robot.py +0 -0
  113. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_setup.py +0 -0
  114. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_subscribers.py +0 -0
  115. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_taxonomy.py +0 -0
  116. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_text.py +0 -0
  117. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_utils.py +0 -0
  118. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_viewlets.py +0 -0
  119. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_vocabularies.py +0 -0
  120. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/tests/test_vocabulary.py +0 -0
  121. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/__init__.py +0 -0
  122. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/configure.zcml +0 -0
  123. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1007_to_1008/rolemap.xml +0 -0
  124. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1008_to_1009/actions.xml +0 -0
  125. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1009_to_1010/registry/tiny_nonbreakingspace.xml +0 -0
  126. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/resources.xml +0 -0
  127. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/scales.xml +0 -0
  128. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/tinymce.xml +0 -0
  129. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1011_to_1012/registry/bundles.xml +0 -0
  130. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1013_to_1014/registry/tinymce.xml +0 -0
  131. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1014_to_1015/registry/syndication.xml +0 -0
  132. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1015_to_1016/registry/patched-faceted-jquery.xml +0 -0
  133. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1016_to_1017/registry/scales.xml +0 -0
  134. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1017_to_1018/registry.xml +0 -0
  135. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1018_to_1019/registry/scales.xml +0 -0
  136. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1022_to_1023/registry/scales.xml +0 -0
  137. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1023_to_1024/registry/scales.xml +0 -0
  138. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1025_to_1026/registry/scales.xml +0 -0
  139. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1027_to_1028/restored-faceted-jquery.xml +0 -0
  140. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1028_to_1029/registry.xml +0 -0
  141. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/profiles/1029_to_1030/registry.xml +0 -0
  142. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/upgrades/upgrades.py +0 -0
  143. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/__init__.py +0 -0
  144. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/analytics.pt +0 -0
  145. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/colophon.pt +0 -0
  146. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/colophon.py +0 -0
  147. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/configure.zcml +0 -0
  148. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/privacy.pt +0 -0
  149. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/privacy.py +0 -0
  150. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/skip_to_content.pt +0 -0
  151. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/viewlets/skip_to_content.py +0 -0
  152. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/vocabularies.py +0 -0
  153. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio/smartweb/common/vocabularies.zcml +0 -0
  154. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio.smartweb.common.egg-info/dependency_links.txt +0 -0
  155. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio.smartweb.common.egg-info/namespace_packages.txt +0 -0
  156. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio.smartweb.common.egg-info/not-zip-safe +0 -0
  157. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/src/imio.smartweb.common.egg-info/requires.txt +0 -0
  158. {imio_smartweb_common-1.2.16 → imio.smartweb.common-1.2.18}/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.18 (2024-07-01)
6
+ -------------------
7
+
8
+ - WEB-4088 : Refactor code for odwb staging availability
9
+ [boulch]
10
+
11
+ - GHA tests on Python 3.8 3.9 and 3.10
12
+ [remdub]
13
+
14
+
15
+ 1.2.17 (2024-06-06)
16
+ -------------------
17
+
18
+ - WEB-4113 : Add `TranslatedAjaxSelectFieldWidget` to fix translations of initial
19
+ values in select2 fields
20
+ [laulaz]
21
+
22
+
5
23
  1.2.16 (2024-05-30)
6
24
  -------------------
7
25
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.common
3
- Version: 1.2.16
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,38 +18,14 @@ 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
26
+ Provides-Extra: test
24
27
  License-File: LICENSE.GPL
25
28
  License-File: LICENSE.rst
26
- Requires-Dist: setuptools
27
- Requires-Dist: z3c.jbot
28
- Requires-Dist: z3c.unconfigure
29
- Requires-Dist: beautifulsoup4
30
- Requires-Dist: geopy
31
- Requires-Dist: Products.GenericSetup>=1.8.2
32
- Requires-Dist: plone.api>=1.8.4
33
- Requires-Dist: plone.restapi
34
- Requires-Dist: plone.app.dexterity
35
- Requires-Dist: plone.app.imagecropping
36
- Requires-Dist: plone.app.lockingbehavior
37
- Requires-Dist: plone.formwidget.geolocation
38
- Requires-Dist: plone.schema
39
- Requires-Dist: eea.facetednavigation
40
- Requires-Dist: imio.gdpr
41
- Requires-Dist: collective.privacy
42
- Requires-Dist: collective.taxonomy
43
- Requires-Dist: iaweb.privacy
44
- Requires-Dist: imio.smartweb.locales
45
- Requires-Dist: more-itertools
46
- 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"
53
29
 
54
30
  .. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
55
31
  If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
@@ -161,6 +137,24 @@ Changelog
161
137
  =========
162
138
 
163
139
 
140
+ 1.2.18 (2024-07-01)
141
+ -------------------
142
+
143
+ - WEB-4088 : Refactor code for odwb staging availability
144
+ [boulch]
145
+
146
+ - GHA tests on Python 3.8 3.9 and 3.10
147
+ [remdub]
148
+
149
+
150
+ 1.2.17 (2024-06-06)
151
+ -------------------
152
+
153
+ - WEB-4113 : Add `TranslatedAjaxSelectFieldWidget` to fix translations of initial
154
+ values in select2 fields
155
+ [laulaz]
156
+
157
+
164
158
  1.2.16 (2024-05-30)
165
159
  -------------------
166
160
 
@@ -16,7 +16,7 @@ long_description = "\n\n".join(
16
16
 
17
17
  setup(
18
18
  name="imio.smartweb.common",
19
- version="1.2.16",
19
+ version="1.2.18",
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/
@@ -29,6 +29,8 @@ setup(
29
29
  "Programming Language :: Python",
30
30
  "Programming Language :: Python :: 3",
31
31
  "Programming Language :: Python :: 3.8",
32
+ "Programming Language :: Python :: 3.9",
33
+ "Programming Language :: Python :: 3.10",
32
34
  "Operating System :: OS Independent",
33
35
  "License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
34
36
  ],
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
+ from imio.smartweb.common.widgets.select import TranslatedAjaxSelectFieldWidget
3
4
  from imio.smartweb.locales import SmartwebMessageFactory as _
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=AjaxSelectFieldWidget)
24
+ directives.widget(topics=TranslatedAjaxSelectFieldWidget)
@@ -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
  )
@@ -0,0 +1,61 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from imio.smartweb.common.testing import IMIO_SMARTWEB_COMMON_INTEGRATION_TESTING
4
+ from imio.smartweb.common.widgets.select import TranslatedAjaxSelectWidget
5
+ from plone.api import portal as portal_api
6
+ from zope.publisher.browser import TestRequest
7
+
8
+ import mock
9
+ import unittest
10
+
11
+
12
+ class TestVocabulary(unittest.TestCase):
13
+ layer = IMIO_SMARTWEB_COMMON_INTEGRATION_TESTING
14
+
15
+ def setUp(self):
16
+ """Custom shared utility setup for tests"""
17
+ self.request = TestRequest()
18
+
19
+ def test_translated_ajax_select(self):
20
+ portal_api.get_current_language = mock.Mock(return_value="fr")
21
+ widget = TranslatedAjaxSelectWidget(self.request)
22
+ widget.update()
23
+ self.assertEqual(
24
+ {
25
+ "name": None,
26
+ "value": "",
27
+ "pattern": "select2",
28
+ "pattern_options": {"separator": ";"},
29
+ },
30
+ widget._base_args(),
31
+ )
32
+
33
+ widget.vocabulary = "imio.smartweb.vocabulary.Topics"
34
+ self.assertEqual(
35
+ widget._base_args(),
36
+ {
37
+ "name": None,
38
+ "value": "",
39
+ "pattern": "select2",
40
+ "pattern_options": {
41
+ "vocabularyUrl": "http://nohost/plone/@@getVocabulary?name=imio.smartweb.vocabulary.Topics",
42
+ "separator": ";",
43
+ },
44
+ },
45
+ )
46
+ widget.value = "entertainment"
47
+ self.assertEqual(
48
+ widget._base_args(),
49
+ {
50
+ "name": None,
51
+ "value": "entertainment",
52
+ "pattern": "select2",
53
+ "pattern_options": {
54
+ "vocabularyUrl": "http://nohost/plone/@@getVocabulary?name=imio.smartweb.vocabulary.Topics",
55
+ "initialValues": {
56
+ "entertainment": "Activités et divertissement",
57
+ },
58
+ "separator": ";",
59
+ },
60
+ },
61
+ )
@@ -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,31 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from plone import api
4
+ from plone.app.z3cform.widget import AjaxSelectWidget
5
+ from z3c.form.interfaces import IFieldWidget
6
+ from z3c.form.widget import FieldWidget
7
+ from zope.interface import implementer
8
+ from zope.i18n import translate
9
+
10
+
11
+ class TranslatedAjaxSelectWidget(AjaxSelectWidget):
12
+ """Translated Ajax select widget for z3c.form."""
13
+
14
+ def _ajaxselect_options(self):
15
+ options = super(TranslatedAjaxSelectWidget, self)._ajaxselect_options()
16
+ current_lang = api.portal.get_current_language()[:2]
17
+ translated_initial_values = {}
18
+ for token, value in list(options.get("initialValues", {}).items()):
19
+ translated_initial_values[token] = translate(
20
+ value, domain="imio.smartweb", target_language=current_lang
21
+ )
22
+ if translated_initial_values:
23
+ options["initialValues"] = translated_initial_values
24
+ return options
25
+
26
+
27
+ @implementer(IFieldWidget)
28
+ def TranslatedAjaxSelectFieldWidget(field, request, extra=None):
29
+ if extra is not None:
30
+ request = extra
31
+ return FieldWidget(field, TranslatedAjaxSelectWidget(request))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.common
3
- Version: 1.2.16
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,38 +18,14 @@ 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
26
+ Provides-Extra: test
24
27
  License-File: LICENSE.GPL
25
28
  License-File: LICENSE.rst
26
- Requires-Dist: setuptools
27
- Requires-Dist: z3c.jbot
28
- Requires-Dist: z3c.unconfigure
29
- Requires-Dist: beautifulsoup4
30
- Requires-Dist: geopy
31
- Requires-Dist: Products.GenericSetup>=1.8.2
32
- Requires-Dist: plone.api>=1.8.4
33
- Requires-Dist: plone.restapi
34
- Requires-Dist: plone.app.dexterity
35
- Requires-Dist: plone.app.imagecropping
36
- Requires-Dist: plone.app.lockingbehavior
37
- Requires-Dist: plone.formwidget.geolocation
38
- Requires-Dist: plone.schema
39
- Requires-Dist: eea.facetednavigation
40
- Requires-Dist: imio.gdpr
41
- Requires-Dist: collective.privacy
42
- Requires-Dist: collective.taxonomy
43
- Requires-Dist: iaweb.privacy
44
- Requires-Dist: imio.smartweb.locales
45
- Requires-Dist: more-itertools
46
- 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"
53
29
 
54
30
  .. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
55
31
  If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
@@ -161,6 +137,24 @@ Changelog
161
137
  =========
162
138
 
163
139
 
140
+ 1.2.18 (2024-07-01)
141
+ -------------------
142
+
143
+ - WEB-4088 : Refactor code for odwb staging availability
144
+ [boulch]
145
+
146
+ - GHA tests on Python 3.8 3.9 and 3.10
147
+ [remdub]
148
+
149
+
150
+ 1.2.17 (2024-06-06)
151
+ -------------------
152
+
153
+ - WEB-4113 : Add `TranslatedAjaxSelectFieldWidget` to fix translations of initial
154
+ values in select2 fields
155
+ [laulaz]
156
+
157
+
164
158
  1.2.16 (2024-05-30)
165
159
  -------------------
166
160
 
@@ -117,6 +117,7 @@ src/imio/smartweb/common/tests/test_utils.py
117
117
  src/imio/smartweb/common/tests/test_viewlets.py
118
118
  src/imio/smartweb/common/tests/test_vocabularies.py
119
119
  src/imio/smartweb/common/tests/test_vocabulary.py
120
+ src/imio/smartweb/common/tests/test_widgets.py
120
121
  src/imio/smartweb/common/tests/resources/image.png
121
122
  src/imio/smartweb/common/tests/resources/image_1400x800.png
122
123
  src/imio/smartweb/common/tests/resources/image_1800x700.png
@@ -151,4 +152,6 @@ src/imio/smartweb/common/viewlets/configure.zcml
151
152
  src/imio/smartweb/common/viewlets/privacy.pt
152
153
  src/imio/smartweb/common/viewlets/privacy.py
153
154
  src/imio/smartweb/common/viewlets/skip_to_content.pt
154
- src/imio/smartweb/common/viewlets/skip_to_content.py
155
+ src/imio/smartweb/common/viewlets/skip_to_content.py
156
+ src/imio/smartweb/common/widgets/__init__.py
157
+ src/imio/smartweb/common/widgets/select.py