imio.smartweb.common 1.2.1__tar.gz → 1.2.3__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 (141) hide show
  1. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/CHANGES.rst +25 -0
  2. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/PKG-INFO +26 -4
  3. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/setup.py +1 -1
  4. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/behaviors/iam.py +1 -0
  5. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/behaviors/topics.py +1 -0
  6. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/default/metadata.xml +1 -1
  7. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/default/registry.xml +9 -3
  8. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/subscribers.py +14 -2
  9. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_text.py +2 -0
  10. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/configure.zcml +52 -0
  11. imio.smartweb.common-1.2.3/src/imio/smartweb/common/upgrades/profiles/1022_to_1023/registry/scales.xml +27 -0
  12. imio.smartweb.common-1.2.3/src/imio/smartweb/common/upgrades/profiles/1023_to_1024/registry/scales.xml +12 -0
  13. imio.smartweb.common-1.2.3/src/imio/smartweb/common/upgrades/upgrades.py +131 -0
  14. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio.smartweb.common.egg-info/PKG-INFO +26 -4
  15. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio.smartweb.common.egg-info/SOURCES.txt +2 -0
  16. imio.smartweb.common-1.2.1/src/imio/smartweb/common/upgrades/upgrades.py +0 -56
  17. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/CONTRIBUTORS.rst +0 -0
  18. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/DEVELOP.rst +0 -0
  19. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/LICENSE.GPL +0 -0
  20. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/LICENSE.rst +0 -0
  21. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/MANIFEST.in +0 -0
  22. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/README.rst +0 -0
  23. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/docs/conf.py +0 -0
  24. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/docs/index.rst +0 -0
  25. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/requirements.txt +0 -0
  26. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/setup.cfg +0 -0
  27. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/__init__.py +0 -0
  28. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/__init__.py +0 -0
  29. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/__init__.py +0 -0
  30. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/adapters.py +0 -0
  31. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/adapters.zcml +0 -0
  32. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/behaviors/__init__.py +0 -0
  33. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/behaviors/configure.zcml +0 -0
  34. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/__init__.py +0 -0
  35. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/configure.zcml +0 -0
  36. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/cropping.py +0 -0
  37. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/description.pt +0 -0
  38. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/description.py +0 -0
  39. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/forms.py +0 -0
  40. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/overrides/plone.app.z3cform.templates.widget.pt +0 -0
  41. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/privacy/__init__.py +0 -0
  42. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/privacy/configure.zcml +0 -0
  43. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/privacy/form.py +0 -0
  44. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/privacy/utils.py +0 -0
  45. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/privacy/views.py +0 -0
  46. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/scaling.py +0 -0
  47. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/Makefile +0 -0
  48. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/package.json +0 -0
  49. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/patched.web3862.eea.faceted-jquery.min.js +0 -0
  50. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/smartweb-common-edit-compiled.css +0 -0
  51. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/smartweb-common-edit-compiled.js +0 -0
  52. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/smartweb-common-view-compiled.css +0 -0
  53. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/smartweb-common-view-compiled.js +0 -0
  54. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/src/edit.js +0 -0
  55. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/src/edit.less +0 -0
  56. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/src/view.js +0 -0
  57. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/src/view.less +0 -0
  58. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/browser/static/webpack.config.js +0 -0
  59. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/caching.py +0 -0
  60. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/config.py +0 -0
  61. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/configure.zcml +0 -0
  62. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/faceted/__init__.py +0 -0
  63. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/faceted/configure.zcml +0 -0
  64. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/faceted/utils.py +0 -0
  65. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/faceted/widget.pt +0 -0
  66. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/faceted/widget.py +0 -0
  67. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/indexers.py +0 -0
  68. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/indexers.zcml +0 -0
  69. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/interfaces.py +0 -0
  70. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/permissions.zcml +0 -0
  71. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/privacy.py +0 -0
  72. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/privacy.zcml +0 -0
  73. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/default/actions.xml +0 -0
  74. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/default/browserlayer.xml +0 -0
  75. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/default/catalog.xml +0 -0
  76. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/default/rolemap.xml +0 -0
  77. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/testing/metadata.xml +0 -0
  78. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/testing/registry.xml +0 -0
  79. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/testing/types/Collection.xml +0 -0
  80. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/testing/types/Document.xml +0 -0
  81. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/testing/types/Folder.xml +0 -0
  82. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles/uninstall/browserlayer.xml +0 -0
  83. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/profiles.zcml +0 -0
  84. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/rest/__init__.py +0 -0
  85. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/rest/configure.zcml +0 -0
  86. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/rest/search_filters.py +0 -0
  87. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/rest/utils.py +0 -0
  88. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/setuphandlers.py +0 -0
  89. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/sharing/__init__.py +0 -0
  90. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/sharing/configure.zcml +0 -0
  91. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/sharing/localroles.py +0 -0
  92. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/sharing/permissions.py +0 -0
  93. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/sharing/permissions.zcml +0 -0
  94. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/subscribers.zcml +0 -0
  95. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/testing.py +0 -0
  96. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/__init__.py +0 -0
  97. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/resources/image.png +0 -0
  98. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/resources/image_1400x800.png +0 -0
  99. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/resources/image_1800x700.png +0 -0
  100. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/robot/test_example.robot +0 -0
  101. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_cropping.py +0 -0
  102. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_description.py +0 -0
  103. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_forms.py +0 -0
  104. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_indexes.py +0 -0
  105. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_local_roles.py +0 -0
  106. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_permissions.py +0 -0
  107. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_privacy.py +0 -0
  108. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_rest.py +0 -0
  109. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_robot.py +0 -0
  110. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_setup.py +0 -0
  111. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_utils.py +0 -0
  112. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_viewlets.py +0 -0
  113. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/tests/test_vocabularies.py +0 -0
  114. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/__init__.py +0 -0
  115. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1007_to_1008/rolemap.xml +0 -0
  116. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1008_to_1009/actions.xml +0 -0
  117. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1009_to_1010/registry/tiny_nonbreakingspace.xml +0 -0
  118. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/resources.xml +0 -0
  119. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/scales.xml +0 -0
  120. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1010_to_1011/registry/tinymce.xml +0 -0
  121. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1011_to_1012/registry/bundles.xml +0 -0
  122. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1013_to_1014/registry/tinymce.xml +0 -0
  123. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1014_to_1015/registry/syndication.xml +0 -0
  124. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1015_to_1016/registry/patched-faceted-jquery.xml +0 -0
  125. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1016_to_1017/registry/scales.xml +0 -0
  126. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1017_to_1018/registry.xml +0 -0
  127. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/upgrades/profiles/1018_to_1019/registry/scales.xml +0 -0
  128. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/utils.py +0 -0
  129. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/viewlets/__init__.py +0 -0
  130. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/viewlets/analytics.pt +0 -0
  131. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/viewlets/colophon.pt +0 -0
  132. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/viewlets/colophon.py +0 -0
  133. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/viewlets/configure.zcml +0 -0
  134. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/viewlets/privacy.pt +0 -0
  135. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/vocabularies.py +0 -0
  136. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio/smartweb/common/vocabularies.zcml +0 -0
  137. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio.smartweb.common.egg-info/dependency_links.txt +0 -0
  138. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio.smartweb.common.egg-info/namespace_packages.txt +0 -0
  139. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio.smartweb.common.egg-info/not-zip-safe +0 -0
  140. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio.smartweb.common.egg-info/requires.txt +0 -0
  141. {imio.smartweb.common-1.2.1 → imio.smartweb.common-1.2.3}/src/imio.smartweb.common.egg-info/top_level.txt +0 -0
@@ -2,6 +2,31 @@ Changelog
2
2
  =========
3
3
 
4
4
 
5
+ 1.2.3 (2023-11-21)
6
+ ------------------
7
+
8
+ - Improve image compression quality
9
+ [laulaz]
10
+
11
+ - Change portrait scales dimensions
12
+ [laulaz]
13
+
14
+
15
+ 1.2.2 (2023-11-20)
16
+ ------------------
17
+
18
+ - Fix missing values for facilities lists (causing `None` in REST views filters)
19
+ See https://github.com/collective/collective.solr/issues/366
20
+ [laulaz]
21
+
22
+ - Fix last upgrade steps: when run from command line, we need to adopt admin
23
+ user to find private objects
24
+ [laulaz]
25
+
26
+ - WEB-4003 : Fix missing TextField mimetypes
27
+ [laulaz]
28
+
29
+
5
30
  1.2.1 (2023-10-29)
6
31
  ------------------
7
32
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.common
3
- Version: 1.2.1
3
+ Version: 1.2.3
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,7 +10,6 @@ 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
14
13
  Classifier: Development Status :: 5 - Production/Stable
15
14
  Classifier: Environment :: Web Environment
16
15
  Classifier: Framework :: Plone
@@ -136,6 +135,31 @@ Changelog
136
135
  =========
137
136
 
138
137
 
138
+ 1.2.3 (2023-11-21)
139
+ ------------------
140
+
141
+ - Improve image compression quality
142
+ [laulaz]
143
+
144
+ - Change portrait scales dimensions
145
+ [laulaz]
146
+
147
+
148
+ 1.2.2 (2023-11-20)
149
+ ------------------
150
+
151
+ - Fix missing values for facilities lists (causing `None` in REST views filters)
152
+ See https://github.com/collective/collective.solr/issues/366
153
+ [laulaz]
154
+
155
+ - Fix last upgrade steps: when run from command line, we need to adopt admin
156
+ user to find private objects
157
+ [laulaz]
158
+
159
+ - WEB-4003 : Fix missing TextField mimetypes
160
+ [laulaz]
161
+
162
+
139
163
  1.2.1 (2023-10-29)
140
164
  ------------------
141
165
 
@@ -477,5 +501,3 @@ Changelog
477
501
 
478
502
  - Initial release.
479
503
  [boulch]
480
-
481
-
@@ -16,7 +16,7 @@ long_description = "\n\n".join(
16
16
 
17
17
  setup(
18
18
  name="imio.smartweb.common",
19
- version="1.2.1",
19
+ version="1.2.3",
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/
@@ -18,6 +18,7 @@ class IAm(model.Schema):
18
18
  "Important! These categories are used to create lists accessible via the navigation menu"
19
19
  ),
20
20
  value_type=schema.Choice(vocabulary="imio.smartweb.vocabulary.IAm"),
21
+ default=[],
21
22
  required=False,
22
23
  )
23
24
  directives.widget(iam=SelectFieldWidget)
@@ -18,6 +18,7 @@ class ITopics(model.Schema):
18
18
  "Important! Topics are used to filter search results and create lists"
19
19
  ),
20
20
  value_type=schema.Choice(vocabulary="imio.smartweb.vocabulary.Topics"),
21
+ default=[],
21
22
  required=False,
22
23
  )
23
24
  directives.widget(topics=SelectFieldWidget)
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <metadata>
3
- <version>1020</version>
3
+ <version>1024</version>
4
4
  <dependencies>
5
5
  <dependency>profile-plone.restapi:default</dependency>
6
6
  <dependency>profile-eea.facetednavigation:default</dependency>
@@ -11,9 +11,9 @@
11
11
  <element>paysage_affiche 750:448</element>
12
12
  <element>paysage_vignette 430:257</element>
13
13
  <element>paysage_liste 167:100</element>
14
- <element>portrait_affiche 750:1060</element>
15
- <element>portrait_vignette 430:608</element>
16
- <element>portrait_liste 222:296</element>
14
+ <element>portrait_affiche 448:633</element>
15
+ <element>portrait_vignette 448:633</element>
16
+ <element>portrait_liste 222:313</element>
17
17
  <element>large 768:768</element>
18
18
  <element>preview 400:400</element>
19
19
  <element>mini 200:200</element>
@@ -24,6 +24,12 @@
24
24
  </value>
25
25
  </record>
26
26
 
27
+ <record name="plone.quality"
28
+ interface="plone.base.interfaces.controlpanel.IImagingSchema"
29
+ field="quality">
30
+ <value>92</value>
31
+ </record>
32
+
27
33
  <records prefix="plone.bundles/smartweb-common-view"
28
34
  interface='Products.CMFPlone.interfaces.IBundleRegistry'>
29
35
  <value key="enabled">True</value>
@@ -36,7 +36,13 @@ def added_content(obj, event):
36
36
  value = getattr(obj, name)
37
37
  if IRichTextValue.providedBy(value):
38
38
  str = clean_invisible_char(value.raw)
39
- setattr(obj, name, RichTextValue(str))
39
+ new_value = RichTextValue(
40
+ str,
41
+ mimeType=value.mimeType,
42
+ outputMimeType=value.outputMimeType,
43
+ encoding=value.encoding,
44
+ )
45
+ setattr(obj, name, new_value)
40
46
  reindex_breadcrumb(obj, event)
41
47
 
42
48
 
@@ -48,7 +54,13 @@ def modified_content(obj, event):
48
54
  continue
49
55
  if IRichTextValue.providedBy(value):
50
56
  str = clean_invisible_char(value.raw)
51
- setattr(obj, name, RichTextValue(str))
57
+ new_value = RichTextValue(
58
+ str,
59
+ mimeType=value.mimeType,
60
+ outputMimeType=value.outputMimeType,
61
+ encoding=value.encoding,
62
+ )
63
+ setattr(obj, name, new_value)
52
64
  reindex_breadcrumb(obj, event)
53
65
 
54
66
 
@@ -34,6 +34,8 @@ class TestText(unittest.TestCase):
34
34
  document.text = text
35
35
  modified(document)
36
36
  self.assertEqual(document.text.raw, "<p>Kamoulox</p>")
37
+ self.assertEqual(document.text.mimeType, "text/html")
38
+ self.assertEqual(document.text.outputMimeType, "text/html")
37
39
 
38
40
  document = api.content.create(
39
41
  container=self.folder,
@@ -92,6 +92,22 @@
92
92
  provides="Products.GenericSetup.interfaces.EXTENSION"
93
93
  />
94
94
 
95
+ <genericsetup:registerProfile
96
+ name="upgrade_1022_to_1023"
97
+ title="Upgrade common from 1022 to 1023"
98
+ directory="profiles/1022_to_1023"
99
+ description="Change portrait scales dimensions"
100
+ provides="Products.GenericSetup.interfaces.EXTENSION"
101
+ />
102
+
103
+ <genericsetup:registerProfile
104
+ name="upgrade_1023_to_1024"
105
+ title="Upgrade common from 1023 to 1024"
106
+ directory="profiles/1023_to_1024"
107
+ description="Improve image compression quality"
108
+ provides="Products.GenericSetup.interfaces.EXTENSION"
109
+ />
110
+
95
111
  <genericsetup:upgradeStep
96
112
  title="Configure first official release"
97
113
  description="Run needed registry step"
@@ -298,4 +314,40 @@
298
314
  profile="imio.smartweb.common:default"
299
315
  />
300
316
 
317
+ <genericsetup:upgradeStep
318
+ title="Restore missing textfields mimetypes"
319
+ source="1020"
320
+ destination="1021"
321
+ handler=".upgrades.restore_textfields_mimetypes"
322
+ profile="imio.smartweb.common:default"
323
+ />
324
+
325
+ <genericsetup:upgradeStep
326
+ title="Fix missing values for lists"
327
+ source="1021"
328
+ destination="1022"
329
+ handler=".upgrades.fix_missing_values_for_lists"
330
+ profile="imio.smartweb.common:default"
331
+ />
332
+
333
+ <genericsetup:upgradeSteps
334
+ source="1022"
335
+ destination="1023"
336
+ profile="imio.smartweb.common:default">
337
+ <genericsetup:upgradeDepends
338
+ title="Change portrait scales dimensions"
339
+ import_profile="imio.smartweb.common.upgrades:upgrade_1022_to_1023"
340
+ />
341
+ </genericsetup:upgradeSteps>
342
+
343
+ <genericsetup:upgradeSteps
344
+ source="1023"
345
+ destination="1024"
346
+ profile="imio.smartweb.common:default">
347
+ <genericsetup:upgradeDepends
348
+ title="Improve image compression quality"
349
+ import_profile="imio.smartweb.common.upgrades:upgrade_1023_to_1024"
350
+ />
351
+ </genericsetup:upgradeSteps>
352
+
301
353
  </configure>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0"?>
2
+ <registry
3
+ xmlns:i18n="http://xml.zope.org/namespaces/i18n"
4
+ i18n:domain="imio.smartweb">
5
+
6
+ <record name="plone.allowed_sizes"
7
+ interface="Products.CMFPlone.interfaces.controlpanel.IImagingSchema"
8
+ field="allowed_sizes">
9
+ <value purge="true">
10
+ <element>banner 1920:65536</element>
11
+ <element>paysage_affiche 750:448</element>
12
+ <element>paysage_vignette 430:257</element>
13
+ <element>paysage_liste 167:100</element>
14
+ <element>portrait_affiche 448:633</element>
15
+ <element>portrait_vignette 448:633</element>
16
+ <element>portrait_liste 222:313</element>
17
+ <element>large 768:768</element>
18
+ <element>preview 400:400</element>
19
+ <element>mini 200:200</element>
20
+ <element>thumb 128:128</element>
21
+ <element>tile 64:64</element>
22
+ <element>icon 32:32</element>
23
+ <element>listing 16:16</element>
24
+ </value>
25
+ </record>
26
+
27
+ </registry>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0"?>
2
+ <registry
3
+ xmlns:i18n="http://xml.zope.org/namespaces/i18n"
4
+ i18n:domain="imio.smartweb">
5
+
6
+ <record name="plone.quality"
7
+ interface="plone.base.interfaces.controlpanel.IImagingSchema"
8
+ field="quality">
9
+ <value>92</value>
10
+ </record>
11
+
12
+ </registry>
@@ -0,0 +1,131 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+ from plone import api
4
+ from plone.app.imagecropping import PAI_STORAGE_KEY
5
+ from plone.app.imagecropping.interfaces import IImageCroppingMarker
6
+ from plone.app.textfield.value import IRichTextValue
7
+ from plone.app.textfield.value import RichTextValue
8
+ from plone.dexterity.utils import iterSchemata
9
+ from zope.annotation.interfaces import IAnnotations
10
+ from zope.schema import getFields
11
+
12
+ import logging
13
+
14
+ logger = logging.getLogger("imio.smartweb.common")
15
+ PROFILEID = "profile-imio.smartweb.common:default"
16
+
17
+
18
+ def reload_registry(context):
19
+ portal_setup = api.portal.get_tool("portal_setup")
20
+ portal_setup.runImportStepFromProfile(PROFILEID, "plone.app.registry")
21
+
22
+
23
+ def reload_actions(context):
24
+ portal_setup = api.portal.get_tool("portal_setup")
25
+ portal_setup.runImportStepFromProfile(PROFILEID, "actions")
26
+
27
+
28
+ def reindex_searchable_text(context):
29
+ portal_catalog = api.portal.get_tool("portal_catalog")
30
+ portal_catalog.manage_reindexIndex(ids=["SearchableText"])
31
+ logger.info("Reindexed SearchableText index")
32
+
33
+
34
+ def upgrade_barceloneta(context):
35
+ portal_setup = api.portal.get_tool("portal_setup")
36
+ portal_setup.upgradeProfile("plonetheme.barceloneta:default")
37
+
38
+
39
+ def remove_deprecated_cropping_annotations(context):
40
+ with api.env.adopt_user(username="admin"):
41
+ brains = api.content.find(object_provides=IImageCroppingMarker)
42
+ scales_to_delete = [
43
+ "affiche",
44
+ "extralarge",
45
+ "slide",
46
+ "medium",
47
+ "vignette",
48
+ "liste",
49
+ ]
50
+ for brain in brains:
51
+ obj = brain.getObject()
52
+ annotations = IAnnotations(obj)
53
+ scales = annotations.get(PAI_STORAGE_KEY)
54
+ if scales is None:
55
+ continue
56
+ deleted_scales = []
57
+ for scale in scales:
58
+ scale_name = scale.split("_")[-1]
59
+ if scale_name in scales_to_delete:
60
+ deleted_scales.append(scale)
61
+
62
+ for scale in deleted_scales:
63
+ del scales[scale]
64
+ if deleted_scales:
65
+ obj.reindexObject()
66
+ logger.info(
67
+ f'Remove deprecated scales : {",".join(deleted_scales)} cropping annotation on {obj.absolute_url()}'
68
+ )
69
+
70
+
71
+ def restore_textfields_mimetypes(context):
72
+ with api.env.adopt_user(username="admin"):
73
+ brains = api.content.find(
74
+ portal_type=[
75
+ "imio.events.Event",
76
+ "imio.news.NewsItem",
77
+ "imio.smartweb.CirkwiView",
78
+ "imio.smartweb.DirectoryView",
79
+ "imio.smartweb.SectionText",
80
+ ]
81
+ )
82
+ for brain in brains:
83
+ obj = brain.getObject()
84
+ for schema in iterSchemata(obj):
85
+ for name, field in getFields(schema).items():
86
+ value = getattr(obj, name)
87
+ if not IRichTextValue.providedBy(value):
88
+ continue
89
+ new_value = RichTextValue(
90
+ value.raw,
91
+ mimeType="text/html",
92
+ outputMimeType="text/x-html-safe",
93
+ encoding="utf-8",
94
+ )
95
+ setattr(obj, name, new_value)
96
+ logger.info(
97
+ f"Fixed WYSIWYG field mimetypes on {obj.absolute_url()}"
98
+ )
99
+
100
+
101
+ def fix_missing_values_for_lists(context):
102
+ catalog = api.portal.get_tool("portal_catalog")
103
+ with api.env.adopt_user(username="admin"):
104
+ brains = api.content.find(
105
+ portal_type=[
106
+ "File",
107
+ "imio.directory.Contact",
108
+ "imio.events.Event",
109
+ "imio.news.NewsItem",
110
+ "imio.smartweb.CirkwiView",
111
+ "imio.smartweb.DirectoryView",
112
+ "imio.smartweb.EventsView",
113
+ "imio.smartweb.NewsView",
114
+ "imio.smartweb.Page",
115
+ "imio.smartweb.PortalPage",
116
+ "imio.smartweb.Procedure",
117
+ "imio.smartweb.SectionExternalContent",
118
+ "imio.smartweb.SectionGallery",
119
+ "imio.smartweb.SectionVideo",
120
+ ]
121
+ )
122
+ for brain in brains:
123
+ obj = brain.getObject()
124
+ if hasattr(obj, "topics") and obj.topics is None:
125
+ obj.topics = []
126
+ catalog.catalog_object(obj, idxs=["topics"])
127
+ logger.info(f"Fixed None list for Topics on {obj.absolute_url()}")
128
+ if hasattr(obj, "iam") and obj.iam is None:
129
+ obj.iam = []
130
+ catalog.catalog_object(obj, idxs=["iam"])
131
+ logger.info(f"Fixed None list for Iam on {obj.absolute_url()}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: imio.smartweb.common
3
- Version: 1.2.1
3
+ Version: 1.2.3
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,7 +10,6 @@ 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
14
13
  Classifier: Development Status :: 5 - Production/Stable
15
14
  Classifier: Environment :: Web Environment
16
15
  Classifier: Framework :: Plone
@@ -136,6 +135,31 @@ Changelog
136
135
  =========
137
136
 
138
137
 
138
+ 1.2.3 (2023-11-21)
139
+ ------------------
140
+
141
+ - Improve image compression quality
142
+ [laulaz]
143
+
144
+ - Change portrait scales dimensions
145
+ [laulaz]
146
+
147
+
148
+ 1.2.2 (2023-11-20)
149
+ ------------------
150
+
151
+ - Fix missing values for facilities lists (causing `None` in REST views filters)
152
+ See https://github.com/collective/collective.solr/issues/366
153
+ [laulaz]
154
+
155
+ - Fix last upgrade steps: when run from command line, we need to adopt admin
156
+ user to find private objects
157
+ [laulaz]
158
+
159
+ - WEB-4003 : Fix missing TextField mimetypes
160
+ [laulaz]
161
+
162
+
139
163
  1.2.1 (2023-10-29)
140
164
  ------------------
141
165
 
@@ -477,5 +501,3 @@ Changelog
477
501
 
478
502
  - Initial release.
479
503
  [boulch]
480
-
481
-
@@ -129,6 +129,8 @@ src/imio/smartweb/common/upgrades/profiles/1015_to_1016/registry/patched-faceted
129
129
  src/imio/smartweb/common/upgrades/profiles/1016_to_1017/registry/scales.xml
130
130
  src/imio/smartweb/common/upgrades/profiles/1017_to_1018/registry.xml
131
131
  src/imio/smartweb/common/upgrades/profiles/1018_to_1019/registry/scales.xml
132
+ src/imio/smartweb/common/upgrades/profiles/1022_to_1023/registry/scales.xml
133
+ src/imio/smartweb/common/upgrades/profiles/1023_to_1024/registry/scales.xml
132
134
  src/imio/smartweb/common/viewlets/__init__.py
133
135
  src/imio/smartweb/common/viewlets/analytics.pt
134
136
  src/imio/smartweb/common/viewlets/colophon.pt
@@ -1,56 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- from plone import api
4
- from plone.app.imagecropping import PAI_STORAGE_KEY
5
- from plone.app.imagecropping.interfaces import IImageCroppingMarker
6
- from zope.annotation.interfaces import IAnnotations
7
-
8
- import logging
9
-
10
- logger = logging.getLogger("imio.smartweb.common")
11
- PROFILEID = "profile-imio.smartweb.common:default"
12
-
13
-
14
- def reload_registry(context):
15
- portal_setup = api.portal.get_tool("portal_setup")
16
- portal_setup.runImportStepFromProfile(PROFILEID, "plone.app.registry")
17
-
18
-
19
- def reload_actions(context):
20
- portal_setup = api.portal.get_tool("portal_setup")
21
- portal_setup.runImportStepFromProfile(PROFILEID, "actions")
22
-
23
-
24
- def reindex_searchable_text(context):
25
- portal_catalog = api.portal.get_tool("portal_catalog")
26
- portal_catalog.manage_reindexIndex(ids=["SearchableText"])
27
- logger.info("Reindexed SearchableText index")
28
-
29
-
30
- def upgrade_barceloneta(context):
31
- portal_setup = api.portal.get_tool("portal_setup")
32
- portal_setup.upgradeProfile("plonetheme.barceloneta:default")
33
-
34
-
35
- def remove_deprecated_cropping_annotations(context):
36
- brains = api.content.find(object_provides=IImageCroppingMarker)
37
- scales_to_delete = ["affiche", "extralarge", "slide", "medium", "vignette", "liste"]
38
- for brain in brains:
39
- obj = brain.getObject()
40
- annotations = IAnnotations(obj)
41
- scales = annotations.get(PAI_STORAGE_KEY)
42
- if scales is None:
43
- continue
44
- deleted_scales = []
45
- for scale in scales:
46
- scale_name = scale.split("_")[-1]
47
- if scale_name in scales_to_delete:
48
- deleted_scales.append(scale)
49
-
50
- for scale in deleted_scales:
51
- del scales[scale]
52
- if deleted_scales:
53
- obj.reindexObject()
54
- logger.info(
55
- f'Remove deprecated scales : {",".join(deleted_scales)} cropping annotation on {obj.absolute_url()}'
56
- )