[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/PageTemplate - ViewPageTemplateFile.py:1.3
Steve Alexander
steve@cat-box.net
Tue, 17 Dec 2002 14:15:49 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv4521/lib/python/Zope/App/PageTemplate
Modified Files:
ViewPageTemplateFile.py
Log Message:
Made ViewPageTemplateFiles into the moral equivalent of ContextMethods.
=== Zope3/lib/python/Zope/App/PageTemplate/ViewPageTemplateFile.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/PageTemplate/ViewPageTemplateFile.py:1.2 Mon Jun 10 19:28:14 2002
+++ Zope3/lib/python/Zope/App/PageTemplate/ViewPageTemplateFile.py Tue Dec 17 14:15:49 2002
@@ -45,6 +45,9 @@
def __get__(self, instance, type=None):
return BoundPageTemplate(self, instance)
+ # Instances of this class are pretending to be methods.
+ # In general, they need to be ContextMethods.
+ __Zope_ContextWrapper_contextful_get__ = True
class ViewMapper:
def __init__(self, ob, request):