plone.tiles 3.0.0__tar.gz → 3.0.2__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 (39) hide show
  1. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/CHANGES.rst +18 -0
  2. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/MANIFEST.in +1 -2
  3. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/PKG-INFO +28 -1
  4. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/data.py +4 -3
  5. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/tile.py +5 -0
  6. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/tiles.rst +9 -0
  7. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone.tiles.egg-info/PKG-INFO +28 -1
  8. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone.tiles.egg-info/SOURCES.txt +0 -1
  9. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/setup.py +1 -1
  10. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/CONTRIBUTING.rst +0 -0
  11. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/LICENSE.GPL +0 -0
  12. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/LICENSE.txt +0 -0
  13. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/README.rst +0 -0
  14. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/__init__.py +0 -0
  15. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/__init__.py +0 -0
  16. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/absoluteurl.py +0 -0
  17. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/configure.zcml +0 -0
  18. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/data.rst +0 -0
  19. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/directives.py +0 -0
  20. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/directives.rst +0 -0
  21. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/esi.py +0 -0
  22. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/esi.rst +0 -0
  23. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/fieldtypeconverters.py +0 -0
  24. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/interfaces.py +0 -0
  25. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/meta.py +0 -0
  26. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/meta.zcml +0 -0
  27. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/test.pt +0 -0
  28. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/testing.py +0 -0
  29. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/tests/__init__.py +0 -0
  30. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/tests/test_data.py +0 -0
  31. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/tests/test_doctests.py +0 -0
  32. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone/tiles/type.py +0 -0
  33. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone.tiles.egg-info/dependency_links.txt +0 -0
  34. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone.tiles.egg-info/namespace_packages.txt +0 -0
  35. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone.tiles.egg-info/not-zip-safe +0 -0
  36. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone.tiles.egg-info/requires.txt +0 -0
  37. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/plone.tiles.egg-info/top_level.txt +0 -0
  38. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/pyproject.toml +0 -0
  39. {plone_tiles-3.0.0 → plone_tiles-3.0.2}/setup.cfg +0 -0
@@ -8,6 +8,24 @@ Changelog
8
8
 
9
9
  .. towncrier release notes start
10
10
 
11
+ 3.0.2 (2025-09-10)
12
+ ------------------
13
+
14
+ Bug fixes:
15
+
16
+
17
+ - Drop ``pkg_resources`` usage. [maurits] (#4126)
18
+
19
+
20
+ 3.0.1 (2025-06-19)
21
+ ------------------
22
+
23
+ Bug fixes:
24
+
25
+
26
+ - Implement `PersistentTile.absolute_url()` to fix canonical header introduced in `plone.namedfile`. @petschki
27
+
28
+
11
29
  3.0.0 (2025-06-05)
12
30
  ------------------
13
31
 
@@ -1,6 +1,5 @@
1
1
  recursive-include plone *
2
- include setup.py setup.cfg *.rst LICENSE.GPL LICENSE.txt
3
- exclude requirements.txt
2
+ include *.rst LICENSE.GPL LICENSE.txt
4
3
  exclude .coveragerc
5
4
  global-exclude *.pyc
6
5
  include pyproject.toml
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: plone.tiles
3
- Version: 3.0.0
3
+ Version: 3.0.2
4
4
  Summary: APIs for managing tiles
5
5
  Home-page: https://github.com/plone/plone.tiles
6
6
  Author: Martin Aspeli
@@ -979,6 +979,7 @@ For convenience, the tile URL is also available under the ``url`` property:
979
979
  >>> transientTile.url
980
980
  'http://example.com/context/@@sample.tile/tile1?title=My+title&cssClass=foo&count%3Along=5'
981
981
 
982
+
982
983
  The tile absolute URL structure remains unaltered if the data is
983
984
  coming from a `_tiledata` JSON-encoded parameter instead of from the request
984
985
  parameters directly:
@@ -1016,6 +1017,14 @@ And again, for convenience:
1016
1017
  >>> persistentTile.url
1017
1018
  'http://example.com/context/@@sample.persistenttile/tile2'
1018
1019
 
1020
+ We also implement the ``absolute_url()`` method for persistent tiles.
1021
+ This is needed for the latest ``plone.namedfile`` canonical header feature.
1022
+
1023
+ .. code-block:: python
1024
+
1025
+ >>> persistentTile.absolute_url()
1026
+ 'http://example.com/context/@@sample.persistenttile/tile2'
1027
+
1019
1028
  If the tile doesn't have an id, we don't get any sub-path:
1020
1029
 
1021
1030
  .. code-block:: python
@@ -1657,6 +1666,24 @@ Changelog
1657
1666
 
1658
1667
  .. towncrier release notes start
1659
1668
 
1669
+ 3.0.2 (2025-09-10)
1670
+ ------------------
1671
+
1672
+ Bug fixes:
1673
+
1674
+
1675
+ - Drop ``pkg_resources`` usage. [maurits] (#4126)
1676
+
1677
+
1678
+ 3.0.1 (2025-06-19)
1679
+ ------------------
1680
+
1681
+ Bug fixes:
1682
+
1683
+
1684
+ - Implement `PersistentTile.absolute_url()` to fix canonical header introduced in `plone.namedfile`. @petschki
1685
+
1686
+
1660
1687
  3.0.0 (2025-06-05)
1661
1688
  ------------------
1662
1689
 
@@ -1,3 +1,5 @@
1
+ from importlib.metadata import distribution
2
+ from importlib.metadata import PackageNotFoundError
1
3
  from persistent.dict import PersistentDict
2
4
  from plone.subrequest import ISubRequest
3
5
  from plone.tiles.directives import IGNORE_QUERYSTRING_KEY
@@ -22,12 +24,11 @@ from zope.schema.interfaces import ISequence
22
24
 
23
25
  import json
24
26
  import logging
25
- import pkg_resources
26
27
 
27
28
 
28
29
  try:
29
- pkg_resources.get_distribution("plone.rfc822")
30
- except pkg_resources.DistributionNotFound:
30
+ distribution("plone.rfc822")
31
+ except PackageNotFoundError:
31
32
  HAS_RFC822 = False
32
33
  else:
33
34
  from plone.rfc822.interfaces import IPrimaryField
@@ -103,6 +103,11 @@ class PersistentTile(Tile):
103
103
  data dict is never serialized with the URL.
104
104
  """
105
105
 
106
+ def absolute_url(self):
107
+ # the "absolute_url" adapter for persistent tiles never has query parameters.
108
+ # We can safely return self.url here.
109
+ return self.url
110
+
106
111
 
107
112
  class TileThemingTransform:
108
113
  """Disable plone.app.theming for tile responses"""
@@ -662,6 +662,7 @@ For convenience, the tile URL is also available under the ``url`` property:
662
662
  >>> transientTile.url
663
663
  'http://example.com/context/@@sample.tile/tile1?title=My+title&cssClass=foo&count%3Along=5'
664
664
 
665
+
665
666
  The tile absolute URL structure remains unaltered if the data is
666
667
  coming from a `_tiledata` JSON-encoded parameter instead of from the request
667
668
  parameters directly:
@@ -699,6 +700,14 @@ And again, for convenience:
699
700
  >>> persistentTile.url
700
701
  'http://example.com/context/@@sample.persistenttile/tile2'
701
702
 
703
+ We also implement the ``absolute_url()`` method for persistent tiles.
704
+ This is needed for the latest ``plone.namedfile`` canonical header feature.
705
+
706
+ .. code-block:: python
707
+
708
+ >>> persistentTile.absolute_url()
709
+ 'http://example.com/context/@@sample.persistenttile/tile2'
710
+
702
711
  If the tile doesn't have an id, we don't get any sub-path:
703
712
 
704
713
  .. code-block:: python
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: plone.tiles
3
- Version: 3.0.0
3
+ Version: 3.0.2
4
4
  Summary: APIs for managing tiles
5
5
  Home-page: https://github.com/plone/plone.tiles
6
6
  Author: Martin Aspeli
@@ -979,6 +979,7 @@ For convenience, the tile URL is also available under the ``url`` property:
979
979
  >>> transientTile.url
980
980
  'http://example.com/context/@@sample.tile/tile1?title=My+title&cssClass=foo&count%3Along=5'
981
981
 
982
+
982
983
  The tile absolute URL structure remains unaltered if the data is
983
984
  coming from a `_tiledata` JSON-encoded parameter instead of from the request
984
985
  parameters directly:
@@ -1016,6 +1017,14 @@ And again, for convenience:
1016
1017
  >>> persistentTile.url
1017
1018
  'http://example.com/context/@@sample.persistenttile/tile2'
1018
1019
 
1020
+ We also implement the ``absolute_url()`` method for persistent tiles.
1021
+ This is needed for the latest ``plone.namedfile`` canonical header feature.
1022
+
1023
+ .. code-block:: python
1024
+
1025
+ >>> persistentTile.absolute_url()
1026
+ 'http://example.com/context/@@sample.persistenttile/tile2'
1027
+
1019
1028
  If the tile doesn't have an id, we don't get any sub-path:
1020
1029
 
1021
1030
  .. code-block:: python
@@ -1657,6 +1666,24 @@ Changelog
1657
1666
 
1658
1667
  .. towncrier release notes start
1659
1668
 
1669
+ 3.0.2 (2025-09-10)
1670
+ ------------------
1671
+
1672
+ Bug fixes:
1673
+
1674
+
1675
+ - Drop ``pkg_resources`` usage. [maurits] (#4126)
1676
+
1677
+
1678
+ 3.0.1 (2025-06-19)
1679
+ ------------------
1680
+
1681
+ Bug fixes:
1682
+
1683
+
1684
+ - Implement `PersistentTile.absolute_url()` to fix canonical header introduced in `plone.namedfile`. @petschki
1685
+
1686
+
1660
1687
  3.0.0 (2025-06-05)
1661
1688
  ------------------
1662
1689
 
@@ -5,7 +5,6 @@ LICENSE.txt
5
5
  MANIFEST.in
6
6
  README.rst
7
7
  pyproject.toml
8
- setup.cfg
9
8
  setup.py
10
9
  plone/__init__.py
11
10
  plone.tiles.egg-info/PKG-INFO
@@ -10,7 +10,7 @@ def read(*path):
10
10
  return myfile.read() + "\n"
11
11
 
12
12
 
13
- version = "3.0.0"
13
+ version = "3.0.2"
14
14
 
15
15
  setup(
16
16
  name="plone.tiles",
File without changes
File without changes
File without changes
File without changes
File without changes