[Zope3-checkins] CVS: Zope3/src/zope/app/content - zpt.py:1.10
Jim Fulton
jim@zope.com
Fri, 18 Apr 2003 14:45:32 -0400
Update of /cvs-repository/Zope3/src/zope/app/content
In directory cvs.zope.org:/tmp/cvs-serv9129/src/zope/app/content
Modified Files:
zpt.py
Log Message:
Added "container" as a name that can be used in ZPT content (aka
Templated Pages). Eventually, we'll phase out use of "context" for
these.
=== Zope3/src/zope/app/content/zpt.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/content/zpt.py:1.9 Mon Apr 14 11:59:26 2003
+++ Zope3/src/zope/app/content/zpt.py Fri Apr 18 14:45:01 2003
@@ -57,7 +57,7 @@
namespace = super(ZPTPage, self).pt_getContext(**_kw)
namespace['template'] = wrapped_self
namespace['request'] = request
- namespace['context'] = instance
+ namespace['container'] = namespace['context'] = instance
return namespace
pt_getContext = ContextMethod(pt_getContext)