[Checkins] SVN: z3c.pt/trunk/ Allow callable for bound page templates (attribute access to __call__).

Malthe Borch mborch at gmail.com
Mon Feb 16 07:19:23 EST 2009


Log message for revision 96588:
  Allow callable for bound page templates (attribute access to __call__).

Changed:
  U   z3c.pt/trunk/CHANGES.txt
  U   z3c.pt/trunk/src/z3c/pt/configure.zcml

-=-
Modified: z3c.pt/trunk/CHANGES.txt
===================================================================
--- z3c.pt/trunk/CHANGES.txt	2009-02-16 11:57:36 UTC (rev 96587)
+++ z3c.pt/trunk/CHANGES.txt	2009-02-16 12:19:23 UTC (rev 96588)
@@ -1,6 +1,9 @@
 Changelog
 ---------
 
+- Allow attribute access to ``__call__`` method on bound page
+  templates. [malthe]
+
 Version 1.0b7 - February 13, 2009
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

Modified: z3c.pt/trunk/src/z3c/pt/configure.zcml
===================================================================
--- z3c.pt/trunk/src/z3c/pt/configure.zcml	2009-02-16 11:57:36 UTC (rev 96587)
+++ z3c.pt/trunk/src/z3c/pt/configure.zcml	2009-02-16 12:19:23 UTC (rev 96588)
@@ -31,7 +31,11 @@
     <class class="chameleon.core.utils.repeatitem">
       <allow interface="chameleon.core.interfaces.ITALESIterator" />
     </class>
-    
+
+    <class class=".pagetemplate.BoundPageTemplate">
+      <allow attributes="__call__ __str__ __name__" />
+    </class>
+
   </configure>
 
 </configure>



More information about the Checkins mailing list