[Zope-Checkins]
SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/providerexpression.py
Document why we wrap it in the view, not the context
Philipp von Weitershausen
philikon at philikon.de
Fri Jul 27 17:09:03 EDT 2007
Log message for revision 78391:
Document why we wrap it in 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:41:55 UTC (rev 78390)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/providerexpression.py 2007-07-27 21:09:03 UTC (rev 78391)
@@ -41,6 +41,8 @@
if provider is None:
raise cp_interfaces.ContentProviderLookupError(name)
+ # A content provider's context (__parent__) is the view, not
+ # the context object.
if getattr(provider, '__of__', None) is not None:
provider = provider.__of__(view)
More information about the Zope-Checkins
mailing list