[Checkins] SVN: five.pt/trunk/src/five/pt/patches.py Not all templates are acquisition aware

Wichert Akkerman wichert at wiggy.net
Mon Apr 19 09:46:46 EDT 2010


Log message for revision 111093:
  Not all templates are acquisition aware

Changed:
  U   five.pt/trunk/src/five/pt/patches.py

-=-
Modified: five.pt/trunk/src/five/pt/patches.py
===================================================================
--- five.pt/trunk/src/five/pt/patches.py	2010-04-19 13:46:10 UTC (rev 111092)
+++ five.pt/trunk/src/five/pt/patches.py	2010-04-19 13:46:46 UTC (rev 111093)
@@ -75,7 +75,10 @@
     if template is _marker:
         self._template = template = BaseTemplateFile(self.filename)
 
-    return template.__of__(self).macros
+    if IAcquirer.providedBy(template):
+        return template.__of__(self).macros
+    else:
+        return template.macros
 
 FiveViewPageTemplateFile.__get__ = get_bound_template
 ZopeViewPageTemplateFile.__get__ = get_bound_template



More information about the checkins mailing list