plone.portlet.collection 4.0.2__tar.gz → 4.0.4__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 (33) hide show
  1. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/CHANGES.rst +32 -0
  2. {plone.portlet.collection-4.0.2/plone.portlet.collection.egg-info → plone_portlet_collection-4.0.4}/PKG-INFO +52 -1
  3. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/collection.py +5 -3
  4. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4/plone.portlet.collection.egg-info}/PKG-INFO +52 -1
  5. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone.portlet.collection.egg-info/SOURCES.txt +0 -1
  6. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone.portlet.collection.egg-info/requires.txt +1 -1
  7. plone_portlet_collection-4.0.4/pyproject.toml +162 -0
  8. plone_portlet_collection-4.0.4/setup.cfg +4 -0
  9. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/setup.py +2 -2
  10. plone.portlet.collection-4.0.2/pyproject.toml +0 -63
  11. plone.portlet.collection-4.0.2/setup.cfg +0 -23
  12. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/CONTRIBUTING.rst +0 -0
  13. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/MANIFEST.in +0 -0
  14. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/README.rst +0 -0
  15. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/docs/LICENSE.GPL +0 -0
  16. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/docs/LICENSE.txt +0 -0
  17. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/__init__.py +0 -0
  18. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/__init__.py +0 -0
  19. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/__init__.py +0 -0
  20. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/collection.pt +0 -0
  21. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/configure.zcml +0 -0
  22. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/profiles/default/metadata.xml +0 -0
  23. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/profiles/default/portlets.xml +0 -0
  24. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/testing.py +0 -0
  25. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/tests/__init__.py +0 -0
  26. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/tests/functional.txt +0 -0
  27. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/tests/test_functional_doctest.py +0 -0
  28. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone/portlet/collection/tests/test_portlet_collection.py +0 -0
  29. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone.portlet.collection.egg-info/dependency_links.txt +0 -0
  30. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone.portlet.collection.egg-info/namespace_packages.txt +0 -0
  31. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone.portlet.collection.egg-info/not-zip-safe +0 -0
  32. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/plone.portlet.collection.egg-info/top_level.txt +0 -0
  33. {plone.portlet.collection-4.0.2 → plone_portlet_collection-4.0.4}/requirements-6.0.x.txt +0 -0
@@ -8,6 +8,38 @@ Changelog
8
8
 
9
9
  .. towncrier release notes start
10
10
 
11
+ 4.0.4 (2025-01-23)
12
+ ------------------
13
+
14
+ Bug fixes:
15
+
16
+
17
+ - Fix DeprecationWarnings. [maurits] (#4090)
18
+
19
+
20
+ Internal:
21
+
22
+
23
+ - Update configuration files.
24
+ [plone devs] (6e36bcc4)
25
+
26
+
27
+ 4.0.3 (2023-06-22)
28
+ ------------------
29
+
30
+ Bug fixes:
31
+
32
+
33
+ - Fix TypeError with "Select random items" option. @alecpm (#36)
34
+
35
+
36
+ Internal:
37
+
38
+
39
+ - Update configuration files.
40
+ [plone devs] (7723aeaf)
41
+
42
+
11
43
  4.0.2 (2023-04-14)
12
44
  ------------------
13
45
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plone.portlet.collection
3
- Version: 4.0.2
3
+ Version: 4.0.4
4
4
  Summary: A portlet that fetches results from a collection
5
5
  Home-page: https://pypi.org/project/plone.portlet.collection/
6
6
  Author: Plone Foundation
@@ -21,7 +21,26 @@ Classifier: Programming Language :: Python :: 3.9
21
21
  Classifier: Programming Language :: Python :: 3.10
22
22
  Classifier: Programming Language :: Python :: 3.11
23
23
  Requires-Python: >=3.8
24
+ Requires-Dist: setuptools
25
+ Requires-Dist: plone.base
26
+ Requires-Dist: plone.memoize
27
+ Requires-Dist: plone.portlets
28
+ Requires-Dist: plone.app.portlets
29
+ Requires-Dist: plone.app.vocabularies
30
+ Requires-Dist: Products.GenericSetup
31
+ Requires-Dist: Products.MimetypesRegistry
32
+ Requires-Dist: plone.app.querystring
33
+ Requires-Dist: plone.app.uuid
34
+ Requires-Dist: plone.app.z3cform
35
+ Requires-Dist: plone.autoform
36
+ Requires-Dist: plone.i18n
37
+ Requires-Dist: plone.registry
38
+ Requires-Dist: Zope
24
39
  Provides-Extra: test
40
+ Requires-Dist: lxml; extra == "test"
41
+ Requires-Dist: plone.testing; extra == "test"
42
+ Requires-Dist: plone.app.testing; extra == "test"
43
+ Requires-Dist: plone.app.contenttypes[test]; extra == "test"
25
44
 
26
45
  Introduction
27
46
  ============
@@ -38,6 +57,38 @@ Changelog
38
57
 
39
58
  .. towncrier release notes start
40
59
 
60
+ 4.0.4 (2025-01-23)
61
+ ------------------
62
+
63
+ Bug fixes:
64
+
65
+
66
+ - Fix DeprecationWarnings. [maurits] (#4090)
67
+
68
+
69
+ Internal:
70
+
71
+
72
+ - Update configuration files.
73
+ [plone devs] (6e36bcc4)
74
+
75
+
76
+ 4.0.3 (2023-06-22)
77
+ ------------------
78
+
79
+ Bug fixes:
80
+
81
+
82
+ - Fix TypeError with "Select random items" option. @alecpm (#36)
83
+
84
+
85
+ Internal:
86
+
87
+
88
+ - Update configuration files.
89
+ [plone devs] (7723aeaf)
90
+
91
+
41
92
  4.0.2 (2023-04-14)
42
93
  ------------------
43
94
 
@@ -2,7 +2,7 @@ from ComputedAttribute import ComputedAttribute
2
2
  from plone.app.portlets.browser import formhelper
3
3
  from plone.app.portlets.portlets import base
4
4
  from plone.app.uuid.utils import uuidToObject
5
- from plone.app.z3cform.widget import RelatedItemsFieldWidget
5
+ from plone.app.z3cform.widgets.relateditems import RelatedItemsFieldWidget
6
6
  from plone.autoform.directives import widget
7
7
  from plone.base.defaultpage import is_default_page
8
8
  from plone.base.interfaces.controlpanel import ISiteSchema
@@ -255,9 +255,11 @@ class Renderer(base.Renderer):
255
255
  limit = self.data.limit and min(len(results), self.data.limit) or 1
256
256
 
257
257
  if exclude_context:
258
- results = [
258
+ results = tuple(
259
259
  brain for brain in results if brain.getPath() != context_path
260
- ]
260
+ )
261
+ else:
262
+ results = tuple(results)
261
263
  if len(results) < limit:
262
264
  limit = len(results)
263
265
  results = random.sample(results, limit)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plone.portlet.collection
3
- Version: 4.0.2
3
+ Version: 4.0.4
4
4
  Summary: A portlet that fetches results from a collection
5
5
  Home-page: https://pypi.org/project/plone.portlet.collection/
6
6
  Author: Plone Foundation
@@ -21,7 +21,26 @@ Classifier: Programming Language :: Python :: 3.9
21
21
  Classifier: Programming Language :: Python :: 3.10
22
22
  Classifier: Programming Language :: Python :: 3.11
23
23
  Requires-Python: >=3.8
24
+ Requires-Dist: setuptools
25
+ Requires-Dist: plone.base
26
+ Requires-Dist: plone.memoize
27
+ Requires-Dist: plone.portlets
28
+ Requires-Dist: plone.app.portlets
29
+ Requires-Dist: plone.app.vocabularies
30
+ Requires-Dist: Products.GenericSetup
31
+ Requires-Dist: Products.MimetypesRegistry
32
+ Requires-Dist: plone.app.querystring
33
+ Requires-Dist: plone.app.uuid
34
+ Requires-Dist: plone.app.z3cform
35
+ Requires-Dist: plone.autoform
36
+ Requires-Dist: plone.i18n
37
+ Requires-Dist: plone.registry
38
+ Requires-Dist: Zope
24
39
  Provides-Extra: test
40
+ Requires-Dist: lxml; extra == "test"
41
+ Requires-Dist: plone.testing; extra == "test"
42
+ Requires-Dist: plone.app.testing; extra == "test"
43
+ Requires-Dist: plone.app.contenttypes[test]; extra == "test"
25
44
 
26
45
  Introduction
27
46
  ============
@@ -38,6 +57,38 @@ Changelog
38
57
 
39
58
  .. towncrier release notes start
40
59
 
60
+ 4.0.4 (2025-01-23)
61
+ ------------------
62
+
63
+ Bug fixes:
64
+
65
+
66
+ - Fix DeprecationWarnings. [maurits] (#4090)
67
+
68
+
69
+ Internal:
70
+
71
+
72
+ - Update configuration files.
73
+ [plone devs] (6e36bcc4)
74
+
75
+
76
+ 4.0.3 (2023-06-22)
77
+ ------------------
78
+
79
+ Bug fixes:
80
+
81
+
82
+ - Fix TypeError with "Select random items" option. @alecpm (#36)
83
+
84
+
85
+ Internal:
86
+
87
+
88
+ - Update configuration files.
89
+ [plone devs] (7723aeaf)
90
+
91
+
41
92
  4.0.2 (2023-04-14)
42
93
  ------------------
43
94
 
@@ -4,7 +4,6 @@ MANIFEST.in
4
4
  README.rst
5
5
  pyproject.toml
6
6
  requirements-6.0.x.txt
7
- setup.cfg
8
7
  setup.py
9
8
  docs/LICENSE.GPL
10
9
  docs/LICENSE.txt
@@ -1,5 +1,4 @@
1
1
  setuptools
2
- ExtensionClass
3
2
  plone.base
4
3
  plone.memoize
5
4
  plone.portlets
@@ -13,6 +12,7 @@ plone.app.z3cform
13
12
  plone.autoform
14
13
  plone.i18n
15
14
  plone.registry
15
+ Zope
16
16
 
17
17
  [test]
18
18
  lxml
@@ -0,0 +1,162 @@
1
+ # Generated from:
2
+ # https://github.com/plone/meta/tree/main/config/default
3
+ # See the inline comments on how to expand/tweak this configuration file
4
+ [build-system]
5
+ requires = ["setuptools>=68.2"]
6
+
7
+ [tool.towncrier]
8
+ directory = "news/"
9
+ filename = "CHANGES.rst"
10
+ title_format = "{version} ({project_date})"
11
+ underlines = ["-", ""]
12
+
13
+ [[tool.towncrier.type]]
14
+ directory = "breaking"
15
+ name = "Breaking changes:"
16
+ showcontent = true
17
+
18
+ [[tool.towncrier.type]]
19
+ directory = "feature"
20
+ name = "New features:"
21
+ showcontent = true
22
+
23
+ [[tool.towncrier.type]]
24
+ directory = "bugfix"
25
+ name = "Bug fixes:"
26
+ showcontent = true
27
+
28
+ [[tool.towncrier.type]]
29
+ directory = "internal"
30
+ name = "Internal:"
31
+ showcontent = true
32
+
33
+ [[tool.towncrier.type]]
34
+ directory = "documentation"
35
+ name = "Documentation:"
36
+ showcontent = true
37
+
38
+ [[tool.towncrier.type]]
39
+ directory = "tests"
40
+ name = "Tests"
41
+ showcontent = true
42
+
43
+ ##
44
+ # Add extra configuration options in .meta.toml:
45
+ # [pyproject]
46
+ # towncrier_extra_lines = """
47
+ # extra_configuration
48
+ # """
49
+ ##
50
+
51
+ [tool.isort]
52
+ profile = "plone"
53
+
54
+ ##
55
+ # Add extra configuration options in .meta.toml:
56
+ # [pyproject]
57
+ # isort_extra_lines = """
58
+ # extra_configuration
59
+ # """
60
+ ##
61
+
62
+ [tool.black]
63
+ target-version = ["py38"]
64
+
65
+ ##
66
+ # Add extra configuration options in .meta.toml:
67
+ # [pyproject]
68
+ # black_extra_lines = """
69
+ # extra_configuration
70
+ # """
71
+ ##
72
+
73
+ [tool.codespell]
74
+ ignore-words-list = "discreet,"
75
+ skip = "*.po,"
76
+ ##
77
+ # Add extra configuration options in .meta.toml:
78
+ # [pyproject]
79
+ # codespell_ignores = "foo,bar"
80
+ # codespell_skip = "*.po,*.map,package-lock.json"
81
+ ##
82
+
83
+ [tool.dependencychecker]
84
+ Zope = [
85
+ # Zope own provided namespaces
86
+ 'App', 'OFS', 'Products.Five', 'Products.OFSP', 'Products.PageTemplates',
87
+ 'Products.SiteAccess', 'Shared', 'Testing', 'ZPublisher', 'ZTUtils',
88
+ 'Zope2', 'webdav', 'zmi',
89
+ # ExtensionClass own provided namespaces
90
+ 'ExtensionClass', 'ComputedAttribute', 'MethodObject',
91
+ # Zope dependencies
92
+ 'AccessControl', 'Acquisition', 'AuthEncoding', 'beautifulsoup4', 'BTrees',
93
+ 'cffi', 'Chameleon', 'DateTime', 'DocumentTemplate',
94
+ 'MultiMapping', 'multipart', 'PasteDeploy', 'Persistence', 'persistent',
95
+ 'pycparser', 'python-gettext', 'pytz', 'RestrictedPython', 'roman',
96
+ 'soupsieve', 'transaction', 'waitress', 'WebOb', 'WebTest', 'WSGIProxy2',
97
+ 'z3c.pt', 'zc.lockfile', 'ZConfig', 'zExceptions', 'ZODB', 'zodbpickle',
98
+ 'zope.annotation', 'zope.browser', 'zope.browsermenu', 'zope.browserpage',
99
+ 'zope.browserresource', 'zope.cachedescriptors', 'zope.component',
100
+ 'zope.configuration', 'zope.container', 'zope.contentprovider',
101
+ 'zope.contenttype', 'zope.datetime', 'zope.deferredimport',
102
+ 'zope.deprecation', 'zope.dottedname', 'zope.event', 'zope.exceptions',
103
+ 'zope.filerepresentation', 'zope.globalrequest', 'zope.hookable',
104
+ 'zope.i18n', 'zope.i18nmessageid', 'zope.interface', 'zope.lifecycleevent',
105
+ 'zope.location', 'zope.pagetemplate', 'zope.processlifetime', 'zope.proxy',
106
+ 'zope.ptresource', 'zope.publisher', 'zope.schema', 'zope.security',
107
+ 'zope.sequencesort', 'zope.site', 'zope.size', 'zope.structuredtext',
108
+ 'zope.tal', 'zope.tales', 'zope.testbrowser', 'zope.testing',
109
+ 'zope.traversing', 'zope.viewlet'
110
+ ]
111
+ 'Products.CMFCore' = [
112
+ 'docutils', 'five.localsitemanager', 'Missing', 'Products.BTreeFolder2',
113
+ 'Products.GenericSetup', 'Products.MailHost', 'Products.PythonScripts',
114
+ 'Products.StandardCacheManagers', 'Products.ZCatalog', 'Record',
115
+ 'zope.sendmail', 'Zope'
116
+ ]
117
+ 'plone.base' = [
118
+ 'plone.batching', 'plone.registry', 'plone.schema','plone.z3cform',
119
+ 'Products.CMFCore', 'Products.CMFDynamicViewFTI',
120
+ ]
121
+ python-dateutil = ['dateutil']
122
+ ignore-packages = ['plone.app.vocabularies']
123
+ ExtensionClass = ['ComputedAttribute']
124
+
125
+ ##
126
+ # Add extra configuration options in .meta.toml:
127
+ # [pyproject]
128
+ # dependencies_ignores = "['zestreleaser.towncrier']"
129
+ # dependencies_mappings = [
130
+ # "gitpython = ['git']",
131
+ # "pygithub = ['github']",
132
+ # ]
133
+ ##
134
+
135
+ [tool.check-manifest]
136
+ ignore = [
137
+ ".editorconfig",
138
+ ".meta.toml",
139
+ ".pre-commit-config.yaml",
140
+ "tox.ini",
141
+ ".flake8",
142
+ "mx.ini",
143
+ "*.cfg",
144
+
145
+ ]
146
+ ##
147
+ # Add extra configuration options in .meta.toml:
148
+ # [pyproject]
149
+ # check_manifest_ignores = """
150
+ # "*.map.js",
151
+ # "*.pyc",
152
+ # """
153
+ ##
154
+
155
+
156
+ ##
157
+ # Add extra configuration options in .meta.toml:
158
+ # [pyproject]
159
+ # extra_lines = """
160
+ # _your own configuration lines_
161
+ # """
162
+ ##
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -2,7 +2,7 @@ from setuptools import find_packages
2
2
  from setuptools import setup
3
3
 
4
4
 
5
- version = "4.0.2"
5
+ version = "4.0.4"
6
6
 
7
7
  setup(
8
8
  name="plone.portlet.collection",
@@ -36,7 +36,6 @@ setup(
36
36
  python_requires=">=3.8",
37
37
  install_requires=[
38
38
  "setuptools",
39
- "ExtensionClass",
40
39
  "plone.base",
41
40
  "plone.memoize",
42
41
  "plone.portlets",
@@ -50,6 +49,7 @@ setup(
50
49
  "plone.autoform",
51
50
  "plone.i18n",
52
51
  "plone.registry",
52
+ "Zope",
53
53
  ],
54
54
  extras_require={
55
55
  "test": [
@@ -1,63 +0,0 @@
1
- # Generated from:
2
- # https://github.com/plone/meta/tree/master/config/default
3
- [tool.towncrier]
4
- filename = "CHANGES.rst"
5
- directory = "news/"
6
- title_format = "{version} ({project_date})"
7
- underlines = ["-", ""]
8
-
9
- [[tool.towncrier.type]]
10
- directory = "breaking"
11
- name = "Breaking changes:"
12
- showcontent = true
13
-
14
- [[tool.towncrier.type]]
15
- directory = "feature"
16
- name = "New features:"
17
- showcontent = true
18
-
19
- [[tool.towncrier.type]]
20
- directory = "bugfix"
21
- name = "Bug fixes:"
22
- showcontent = true
23
-
24
- [[tool.towncrier.type]]
25
- directory = "internal"
26
- name = "Internal:"
27
- showcontent = true
28
-
29
- [[tool.towncrier.type]]
30
- directory = "documentation"
31
- name = "Documentation:"
32
- showcontent = true
33
-
34
- [[tool.towncrier.type]]
35
- directory = "tests"
36
- name = "Tests"
37
- showcontent = true
38
-
39
- [tool.isort]
40
- profile = "plone"
41
-
42
- [tool.black]
43
- target-version = ["py38"]
44
-
45
- [tool.dependencychecker]
46
- Zope = [
47
- # Zope own provided namespaces
48
- 'App', 'OFS', 'Products.Five', 'Products.OFSP', 'Products.PageTemplates',
49
- 'Products.SiteAccess', 'Shared', 'Testing', 'ZPublisher', 'ZTUtils',
50
- 'Zope2', 'webdav', 'zmi',
51
- # Zope dependencies
52
- 'Acquisition', 'DateTime', 'transaction', 'zExceptions', 'ZODB', 'zope.component',
53
- 'zope.configuration', 'zope.container', 'zope.deferredimport', 'zope.event',
54
- 'zope.exceptions', 'zope.globalrequest', 'zope.i18n', 'zope.i18nmessageid',
55
- 'zope.interface', 'zope.lifecycleevent', 'zope.location', 'zope.publisher',
56
- 'zope.schema', 'zope.security', 'zope.site', 'zope.traversing', 'AccessControl',
57
- ]
58
- 'plone.base' = [
59
- 'AccessControl', 'Products.BTreeFolder2', 'Products.CMFCore',
60
- 'Products.CMFDynamicViewFTI', 'zope.deprecation',
61
- ]
62
- python-dateutil = ['dateutil']
63
- ExtensionClass = ['ComputedAttribute']
@@ -1,23 +0,0 @@
1
- [bdist_wheel]
2
- universal = 0
3
-
4
- [flake8]
5
- doctests = 1
6
- ignore =
7
- E501,
8
- W503,
9
- E203,
10
- E231,
11
-
12
- [check-manifest]
13
- ignore =
14
- .editorconfig
15
- .meta.toml
16
- .pre-commit-config.yaml
17
- tox.ini
18
- *.cfg
19
-
20
- [egg_info]
21
- tag_build =
22
- tag_date = 0
23
-