Log message for revision 78436:
  Provide the aq_ properties for BBB
  

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

-=-
Modified: Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py      
2007-07-28 20:11:10 UTC (rev 78435)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py      
2007-07-28 20:52:49 UTC (rev 78436)
@@ -25,4 +25,18 @@
     def __of__(self, context):
         return self
 
-    # TODO we probably want to provide the aq_* properties as well
+    # We provide the aq_* properties here for BBB
+
+    @property
+    def aq_base(self):
+        return self
+
+    aq_self = aq_inner = aq_base
+
+    @property
+    def aq_parent(self):
+        return self.__parent__
+
+    @property
+    def aq_chain(self):
+        return [self]

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

Reply via email to