[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/pagetemplate.py Adding template version number.

Malthe Borch mborch at gmail.com
Mon Mar 2 09:53:05 EST 2009


Log message for revision 97416:
  Adding template version number.

Changed:
  U   z3c.pt/trunk/src/z3c/pt/pagetemplate.py

-=-
Modified: z3c.pt/trunk/src/z3c/pt/pagetemplate.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/pagetemplate.py	2009-03-02 10:31:57 UTC (rev 97415)
+++ z3c.pt/trunk/src/z3c/pt/pagetemplate.py	2009-03-02 14:53:05 UTC (rev 97416)
@@ -76,7 +76,8 @@
 
 class BaseTemplate(template.PageTemplate):
     default_parser = language.Parser()
-
+    version = 1
+    
     def bind(self, ob, request=None, macro=None, global_scope=True):
         def render(target_language=None, **kwargs):
             context = self._pt_get_context(ob, request, kwargs)
@@ -148,6 +149,8 @@
 
     Initialize with a template string."""
 
+    version = 1
+    
     def __get__(self, instance, type):
         if instance is not None:
             return self.bind(instance)



More information about the Checkins mailing list