[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0-broken/src/zope/app/copypastemove/__init__.py
Added logic to set adapter __parent__ attr to allow acquisition of
Jim Fulton
jim at zope.com
Fri Aug 27 12:19:47 EDT 2004
Log message for revision 27299:
Added logic to set adapter __parent__ attr to allow acquisition of
grants.
We need to find a way to automate setting adapter __parent__ attrs.
Changed:
U Zope3/branches/ZopeX3-3.0-broken/src/zope/app/copypastemove/__init__.py
-=-
Modified: Zope3/branches/ZopeX3-3.0-broken/src/zope/app/copypastemove/__init__.py
===================================================================
--- Zope3/branches/ZopeX3-3.0-broken/src/zope/app/copypastemove/__init__.py 2004-08-27 15:48:28 UTC (rev 27298)
+++ Zope3/branches/ZopeX3-3.0-broken/src/zope/app/copypastemove/__init__.py 2004-08-27 16:19:47 UTC (rev 27299)
@@ -159,6 +159,7 @@
def __init__(self, object):
self.context = object
+ self.__parent__ = object # TODO: see if we can automate this
def moveTo(self, target, new_name=None):
'''Move this object to the target given.
@@ -344,6 +345,7 @@
def __init__(self, object):
self.context = object
+ self.__parent__ = object # TODO: see if we can automate this
def copyTo(self, target, new_name=None):
"""Copy this object to the target given.
More information about the Zope3-Checkins
mailing list