[Zope-Checkins]
SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py
Provide the aq_ properties for BBB
Hanno Schlichting
plone at hannosch.info
Sat Jul 28 16:52:49 EDT 2007
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]
More information about the Zope-Checkins
mailing list