[Zope-Checkins]
SVN: Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py
Simplify aq_parent
Hanno Schlichting
plone at hannosch.info
Sun Jul 29 11:28:56 EDT 2007
Log message for revision 78464:
Simplify aq_parent
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-29 15:26:37 UTC (rev 78463)
+++ Zope/branches/philikon-aq/lib/python/Products/Five/browser/__init__.py 2007-07-29 15:28:56 UTC (rev 78464)
@@ -39,7 +39,7 @@
def __setParent(self, parent):
self._parent = parent
- __parent__ = property(__getParent, __setParent)
+ aq_parent = __parent__ = property(__getParent, __setParent)
# We provide the aq_* properties here for BBB
@@ -50,9 +50,5 @@
aq_self = aq_inner = aq_base
@property
- def aq_parent(self):
- return self.__parent__
-
- @property
def aq_chain(self):
return aq_chain(self)
More information about the Zope-Checkins
mailing list