Commit 208df39d authored by Hanno Schlichting's avatar Hanno Schlichting

Adjust to new zope.pagetemplate macros lookup.

parent 20498c16
...@@ -19,6 +19,8 @@ Bugs Fixed ...@@ -19,6 +19,8 @@ Bugs Fixed
Features Added Features Added
++++++++++++++ ++++++++++++++
- Adjust to new zope.pagetemplate macros lookup.
- Optimized the `OFS.Traversable.getPhysicalPath` method to avoid excessive - Optimized the `OFS.Traversable.getPhysicalPath` method to avoid excessive
amounts of method calls. amounts of method calls.
......
...@@ -87,7 +87,7 @@ setup(name='Zope2', ...@@ -87,7 +87,7 @@ setup(name='Zope2',
'zope.interface', 'zope.interface',
'zope.lifecycleevent', 'zope.lifecycleevent',
'zope.location', 'zope.location',
'zope.pagetemplate', 'zope.pagetemplate >= 3.6.1',
'zope.processlifetime', 'zope.processlifetime',
'zope.proxy', 'zope.proxy',
'zope.ptresource', 'zope.ptresource',
......
...@@ -59,7 +59,7 @@ class PageTemplate(ExtensionClass.Base, ...@@ -59,7 +59,7 @@ class PageTemplate(ExtensionClass.Base,
'Page Template %s has errors: %s' % ( 'Page Template %s has errors: %s' % (
self.id, self._v_errors self.id, self._v_errors
)) ))
return self._v_macros return self._v_program.macros
# these methods are reimplemented or duplicated here because of # these methods are reimplemented or duplicated here because of
# different call signatures in the Zope 2 world # different call signatures in the Zope 2 world
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment