[Checkins] SVN: five.pt/trunk/ Implement ``zope.pagetemplate.interfaces.IPageTemplate interface.
Malthe Borch
mborch at gmail.com
Tue May 24 03:51:19 EDT 2011
Log message for revision 121784:
Implement ``zope.pagetemplate.interfaces.IPageTemplate interface.
Changed:
U five.pt/trunk/CHANGES.txt
U five.pt/trunk/src/five/pt/pagetemplate.py
-=-
Modified: five.pt/trunk/CHANGES.txt
===================================================================
--- five.pt/trunk/CHANGES.txt 2011-05-23 19:50:03 UTC (rev 121783)
+++ five.pt/trunk/CHANGES.txt 2011-05-24 07:51:19 UTC (rev 121784)
@@ -3,6 +3,12 @@
In next release...
+- Have the base template class implement ``IPageTemplate`` from
+ ``zope.pagetemplate``. This interface is relied on for a number of
+ adapter registrations and the missing interface declaration affects
+ packages such as ``plone.caching``.
+ [malthe]
+
- Set default reload mode to the Zope 2 application server
configuration's ``debug_mode`` value.
[malthe]
Modified: five.pt/trunk/src/five/pt/pagetemplate.py
===================================================================
--- five.pt/trunk/src/five/pt/pagetemplate.py 2011-05-23 19:50:03 UTC (rev 121783)
+++ five.pt/trunk/src/five/pt/pagetemplate.py 2011-05-24 07:51:19 UTC (rev 121784)
@@ -2,6 +2,8 @@
from DateTime import DateTime
from zope.app.pagetemplate.viewpagetemplatefile import ViewMapper
+from zope.interface import implements
+from zope.pagetemplate.interfaces import IPageTemplate
from Acquisition import aq_get
from Acquisition import aq_inner
@@ -54,6 +56,8 @@
class BaseTemplateBase(pagetemplate.BaseTemplate):
"""Base for Zope 2-compatible page template classes."""
+ implements(IPageTemplate)
+
utility_builtins = {}
encoding = 'utf-8'
More information about the checkins
mailing list