[Checkins] SVN: zope.location/trunk/src/zope/location/location.py
only set __parent__ and __name__ if necessary in located
Christian Zagrodnick
cz at gocept.com
Fri Aug 17 08:06:10 EDT 2007
Log message for revision 78903:
only set __parent__ and __name__ if necessary in located
Changed:
U zope.location/trunk/src/zope/location/location.py
-=-
Modified: zope.location/trunk/src/zope/location/location.py
===================================================================
--- zope.location/trunk/src/zope/location/location.py 2007-08-17 11:57:04 UTC (rev 78902)
+++ zope.location/trunk/src/zope/location/location.py 2007-08-17 12:06:10 UTC (rev 78903)
@@ -51,7 +51,8 @@
"""
if ILocation.providedBy(object):
- locate(object, parent, name)
+ if parent is not object.__parent__ or name != object.__name__:
+ locate(object, parent, name)
return object
return LocationProxy(object, parent, name)
More information about the Checkins
mailing list