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)
 

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

Reply via email to