[Zope-Checkins] SVN: Zope/branches/2.13/ In PageTemplate.pt_errors accept the check_macro_expansion argument.

Maurits van Rees cvs-admin at zope.org
Fri Jan 4 10:00:25 UTC 2013


Log message for revision 129010:
  In PageTemplate.pt_errors accept the check_macro_expansion argument.
  
  This is added for compatibility with zope.pagetemplate 4.0.0.
  The argument is ignored.
  See LP #732972.
  

Changed:
  U   Zope/branches/2.13/doc/CHANGES.rst
  U   Zope/branches/2.13/src/Products/PageTemplates/PageTemplate.py

-=-
Modified: Zope/branches/2.13/doc/CHANGES.rst
===================================================================
--- Zope/branches/2.13/doc/CHANGES.rst	2013-01-04 09:52:23 UTC (rev 129009)
+++ Zope/branches/2.13/doc/CHANGES.rst	2013-01-04 10:00:25 UTC (rev 129010)
@@ -8,6 +8,10 @@
 2.13.20 (unreleased)
 --------------------
 
+- In PageTemplate.pt_errors accept the check_macro_expansion argument.
+  This is added for compatibility with zope.pagetemplate 4.0.0.  The
+  argument is ignored.  See LP #732972.
+
 - Updated distributions:
 
   - Products.ZCTextIndex = 2.13.4

Modified: Zope/branches/2.13/src/Products/PageTemplates/PageTemplate.py
===================================================================
--- Zope/branches/2.13/src/Products/PageTemplates/PageTemplate.py	2013-01-04 09:52:23 UTC (rev 129009)
+++ Zope/branches/2.13/src/Products/PageTemplates/PageTemplate.py	2013-01-04 10:00:25 UTC (rev 129010)
@@ -79,7 +79,10 @@
                    showtal=showtal)
 
 
-    def pt_errors(self, namespace={}):
+    def pt_errors(self, namespace={}, check_macro_expansion=None):
+        # The check_macro_expansion argument is added for
+        # compatibility with zope.pagetemplate 4.0.0.  The argument is
+        # ignored.  See LP #732972.
         self._cook_check()
         err = self._v_errors
         if err:



More information about the Zope-Checkins mailing list