plone.tiles 3.0.0__tar.gz → 3.0.1__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.1}/CHANGES.rst +9 -0
  2. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/PKG-INFO +19 -1
  3. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/tile.py +5 -0
  4. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/tiles.rst +9 -0
  5. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone.tiles.egg-info/PKG-INFO +19 -1
  6. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/setup.py +1 -1
  7. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/CONTRIBUTING.rst +0 -0
  8. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/LICENSE.GPL +0 -0
  9. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/LICENSE.txt +0 -0
  10. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/MANIFEST.in +0 -0
  11. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/README.rst +0 -0
  12. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/__init__.py +0 -0
  13. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/__init__.py +0 -0
  14. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/absoluteurl.py +0 -0
  15. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/configure.zcml +0 -0
  16. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/data.py +0 -0
  17. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/data.rst +0 -0
  18. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/directives.py +0 -0
  19. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/directives.rst +0 -0
  20. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/esi.py +0 -0
  21. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/esi.rst +0 -0
  22. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/fieldtypeconverters.py +0 -0
  23. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/interfaces.py +0 -0
  24. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/meta.py +0 -0
  25. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/meta.zcml +0 -0
  26. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/test.pt +0 -0
  27. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/testing.py +0 -0
  28. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/tests/__init__.py +0 -0
  29. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/tests/test_data.py +0 -0
  30. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/tests/test_doctests.py +0 -0
  31. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone/tiles/type.py +0 -0
  32. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone.tiles.egg-info/SOURCES.txt +0 -0
  33. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone.tiles.egg-info/dependency_links.txt +0 -0
  34. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone.tiles.egg-info/namespace_packages.txt +0 -0
  35. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone.tiles.egg-info/not-zip-safe +0 -0
  36. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone.tiles.egg-info/requires.txt +0 -0
  37. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/plone.tiles.egg-info/top_level.txt +0 -0
  38. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/pyproject.toml +0 -0
  39. {plone_tiles-3.0.0 → plone_tiles-3.0.1}/setup.cfg +0 -0
@@ -8,6 +8,15 @@ Changelog
8
8
 
9
9
  .. towncrier release notes start
10
10
 
11
+ 3.0.1 (2025-06-19)
12
+ ------------------
13
+
14
+ Bug fixes:
15
+
16
+
17
+ - Implement `PersistentTile.absolute_url()` to fix canonical header introduced in `plone.namedfile`. @petschki
18
+
19
+
11
20
  3.0.0 (2025-06-05)
12
21
  ------------------
13
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: plone.tiles
3
- Version: 3.0.0
3
+ Version: 3.0.1
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,15 @@ Changelog
1657
1666
 
1658
1667
  .. towncrier release notes start
1659
1668
 
1669
+ 3.0.1 (2025-06-19)
1670
+ ------------------
1671
+
1672
+ Bug fixes:
1673
+
1674
+
1675
+ - Implement `PersistentTile.absolute_url()` to fix canonical header introduced in `plone.namedfile`. @petschki
1676
+
1677
+
1660
1678
  3.0.0 (2025-06-05)
1661
1679
  ------------------
1662
1680
 
@@ -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.1
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,15 @@ Changelog
1657
1666
 
1658
1667
  .. towncrier release notes start
1659
1668
 
1669
+ 3.0.1 (2025-06-19)
1670
+ ------------------
1671
+
1672
+ Bug fixes:
1673
+
1674
+
1675
+ - Implement `PersistentTile.absolute_url()` to fix canonical header introduced in `plone.namedfile`. @petschki
1676
+
1677
+
1660
1678
  3.0.0 (2025-06-05)
1661
1679
  ------------------
1662
1680
 
@@ -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.1"
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
File without changes