[Zope3-Users] Deleting subobjects works "half" only
Frank Burkhardt
fbo2 at gmx.net
Fri May 19 07:47:16 EDT 2006
Hi,
I've got a strange effect here. A view on an object of mine has to remove all
the objects childs:
class MyView(BrowserView):
def __call__(self):
for entry in self.context.keys():
del self.context[entry]
return ''
Unfortunately, the view removes just half the objects - independently of how much
objects are left inside the container.
The object itself looks like this:
class MyObject(BTreeContainer):
implements(MyInterFace)
Is this a bug or some kind of protection against accidential removal? Is
there a more efficient way of removing all the BTreeContainer's objects at
once?
BTW: I've got the same effect on a different object, too.
Regards,
Frank
More information about the Zope3-users
mailing list