[BlueBream] Copied objects losing support for __parent__ and getParents
Jonah Crawford
jonah at microgridsystems.com
Sun Oct 17 13:01:07 EDT 2010
After copying some container objects using zope.copy.clone the objects that have been copied as well as those which have been copied into are no longer supporting calls involving __parent__ and getParents . I manually set each copied objects new parent like so:
source_obj_name = str(source_obj.__name__)[:]
newobj = zope.copy.clone(source_obj)
newobj.__name__ = source_obj_name
newobj.__parent__ = target_obj
but this doesn't seem to solve the issue. Any thoughts as to what I'm not doing ? The source of the trace below:
Module zope.location.traversing:235 in getParents
>> raise TypeError("Not enough context information to get all parents")
TypeError: Not enough context information to get all parents
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/bluebream/attachments/20101017/99f1b7c5/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plus.jpg
Type: image/jpeg
Size: 361 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/bluebream/attachments/20101017/99f1b7c5/attachment.jpg
More information about the bluebream
mailing list