[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/pagetemplate.py B/W for libraries that expect the Chameleon 1.x API which has a file cache 'registry'.
Malthe Borch
mborch at gmail.com
Wed Feb 23 05:29:15 EST 2011
Log message for revision 120529:
B/W for libraries that expect the Chameleon 1.x API which has a file cache 'registry'.
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 2011-02-23 10:25:19 UTC (rev 120528)
+++ z3c.pt/trunk/src/z3c/pt/pagetemplate.py 2011-02-23 10:29:15 UTC (rev 120529)
@@ -44,10 +44,20 @@
sys_modules = OpaqueDict(sys.modules)
+class DummyRegistry(object):
+ """This class is for B/W with Chameleon 1.x API."""
+
+ @staticmethod
+ def purge():
+ pass
+
+
class BaseTemplate(template.PageTemplate):
content_type = None
version = 2
+ registry = DummyRegistry()
+
expression_types = {
'python': PythonExpr,
'string': StringExpr,
More information about the checkins
mailing list