[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py Avoid two unnecessary dict lookups.

Hanno Schlichting plone at hannosch.info
Sat Nov 15 08:57:01 EST 2008


Log message for revision 92965:
  Avoid two unnecessary dict lookups.

Changed:
  U   Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py

-=-
Modified: Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py
===================================================================
--- Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py	2008-11-15 13:50:40 UTC (rev 92964)
+++ Zope/trunk/lib/python/Products/Five/browser/pagetemplatefile.py	2008-11-15 13:57:00 UTC (rev 92965)
@@ -71,10 +71,10 @@
         if meth is not None:
             root = meth()
 
-        context.update(here=context['context'],
+        context.update(here=obj,
                        # philiKON thinks container should be the view,
                        # but BBB is more important than aesthetics.
-                       container=context['context'],
+                       container=obj,
                        root=root,
                        modules=SecureModuleImporter,
                        traverse_subpath=[],  # BBB, never really worked



More information about the Zope-Checkins mailing list