diff options
author | Godefroid Chapelle <gotcha@bubblenet.be> | 2009-12-18 10:50:06 +0000 |
---|---|---|
committer | Godefroid Chapelle <gotcha@bubblenet.be> | 2009-12-18 10:50:06 +0000 |
commit | 4b121ce0ea2062e1c97fc96d37c23097c7aea045 (patch) | |
tree | c23528127cc19e47659fbfe30f5dfef314d1ec97 /src | |
parent | ff9ea77f558e4db43a20368e3cd8f6f06cdaa380 (diff) | |
download | zope-pagetemplate-4b121ce0ea2062e1c97fc96d37c23097c7aea045.tar.gz |
fix dependencies (thanks to z3c.dependencychecker)
Diffstat (limited to 'src')
-rw-r--r-- | src/zope/pagetemplate/engine.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zope/pagetemplate/engine.py b/src/zope/pagetemplate/engine.py index 576f405..1dd2576 100644 --- a/src/zope/pagetemplate/engine.py +++ b/src/zope/pagetemplate/engine.py @@ -37,7 +37,7 @@ from zope.tales.expressions import SimpleModuleImporter from zope.tales.pythonexpr import PythonExpr from zope.tales.tales import ExpressionEngine, Context -from i18n import ZopeMessageFactory as _ +from zope.pagetemplate.i18n import ZopeMessageFactory as _ class InlineCodeError(Exception): pass @@ -59,8 +59,8 @@ class ZopeTraverser(object): while path_items: name = path_items.pop() - - # special-case dicts for performance reasons + + # special-case dicts for performance reasons if getattr(object, '__class__', None) == dict: object = object[name] else: @@ -143,10 +143,10 @@ class ZopeContext(ZopeContextBase): """evaluateMacro gets security-proxied macro programs when this is run with the zopeTraverser, and in other untrusted situations. This will cause evaluation to fail in - zope.tal.talinterpreter, which knows nothing of security proxies. + zope.tal.talinterpreter, which knows nothing of security proxies. Therefore, this method removes any proxy from the evaluated expression. - + >>> output = [('version', 'xxx'), ('mode', 'html'), ('other', 'things')] >>> def expression(context): ... return ProxyFactory(output) |