Skip to content

Commit

Permalink
B/W for libraries that expect the Chameleon 1.x API which has a file …
Browse files Browse the repository at this point in the history
…cache 'registry'.
  • Loading branch information
malthe committed Feb 23, 2011
1 parent 1da408f commit 13360de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/z3c/pt/pagetemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,20 @@ def __repr__(self):
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,
Expand Down

0 comments on commit 13360de

Please sign in to comment.