Log message for revision 66231:
  Remove unnecessary rebind magic.
  Tighten the screws on a test whether 'view' is None or not.
  

Changed:
  U   
Products.Five/branches/philikon-local-components/browser/pagetemplatefile.py

-=-
Modified: 
Products.Five/branches/philikon-local-components/browser/pagetemplatefile.py
===================================================================
--- 
Products.Five/branches/philikon-local-components/browser/pagetemplatefile.py    
    2006-03-27 10:40:29 UTC (rev 66230)
+++ 
Products.Five/branches/philikon-local-components/browser/pagetemplatefile.py    
    2006-03-27 10:41:13 UTC (rev 66231)
@@ -63,7 +63,7 @@
     pt_render = rebindFunction(PageTemplateFile.pt_render,
                                getEngine=getEngine)
 
-    def _pt_getContext(self):
+    def pt_getContext(self):
         try:
             root = self.getPhysicalRoot()
             view = self._getContext()
@@ -87,11 +87,8 @@
              'request': request,
              'modules': ModuleImporter,
              }
-        if view:
+        if view is not None:
             c['view'] = view
             c['views'] = ViewMapper(here, request)
 
         return c
-
-    pt_getContext = rebindFunction(_pt_getContext,
-                                   SecureModuleImporter=ModuleImporter)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to