I am implementing a kind of Copy function which will strip off the sub level
of object being copied. The idea is to copy only the object marked for
copying - without the sub objects.
(For those interested: I use these objects as special kind of reference
objects in my structure.......)
In the new copy routine I have added these lines which avoids having the sub
newObject = ob._getCopy(self)
for zob in newObject._objects:
newObject._objects = ()
[ ..... ]
self._setObject(newObject.id,newObject) # add the object to the Zope
... delattr is the same method as used by _delOb, so I assumed this is the
safe way of doing it.
Can anyone tell me if this is not OK ? It seems to work very well ....
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -