[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/providerexpression.py A viewlet needs to be __of__ the view (it expects its __parent__ to be the view,

Philipp von Weitershausen philikon at philikon.de
Fri Jul 27 16:41:56 EDT 2007


Log message for revision 78390:
  A viewlet needs to be __of__ the view (it expects its __parent__ to be the view,
  not the context).
  

Changed:
  U   Zope/branches/philikon-aq/lib/python/Products/Five/browser/providerexpression.py

-=-
Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/providerexpression.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/Products/Five/browser/providerexpression.py	2007-07-27 20:24:58 UTC (rev 78389)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/providerexpression.py	2007-07-27 20:41:55 UTC (rev 78390)
@@ -42,7 +42,7 @@
             raise cp_interfaces.ContentProviderLookupError(name)
 
         if getattr(provider, '__of__', None) is not None:
-            provider = provider.__of__(context)
+            provider = provider.__of__(view)
 
         # Insert the data gotten from the context
         addTALNamespaceData(provider, econtext)



More information about the Zope-Checkins mailing list