[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/zptpage.py reduce the scope of a removeAllProxies() call, and add a comment about it

Fred L. Drake, Jr. fdrake at gmail.com
Fri Aug 13 11:22:03 EDT 2004


Log message for revision 27102:
  reduce the scope of a removeAllProxies() call, and add a comment about it


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/zptpage.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/zptpage.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/zptpage.py	2004-08-13 15:21:38 UTC (rev 27101)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/zptpage/zptpage.py	2004-08-13 15:22:02 UTC (rev 27102)
@@ -62,8 +62,8 @@
 
     def pt_getContext(self, instance, request, **_kw):
         # instance is a View component
-        self = removeAllProxies(self)
-        namespace = super(ZPTPage, self).pt_getContext(**_kw)
+        # we need removeAllProxies() to make super work
+        namespace = super(ZPTPage, removeAllProxies(self)).pt_getContext(**_kw)
         namespace['template'] = self
         namespace['request'] = request
         namespace['container'] = namespace['context'] = instance



More information about the Zope3-Checkins mailing list