[Zope3-Users] problems deleting objects in containers
Dominique Lederer
dominique.lederer at inode.at
Wed Jun 6 14:18:58 EDT 2007
hi
i want to delete objects in my container, for that i do
for xx in container.keys():
logging.info(xx)
del container[xx]
but only every second obj is deleted, the loop touches objects in this order:
1,3,5,7,.....
if i remove the del statement from the upper example, the loop works as expected:
1,2,3,4,5,6...
i also looked at zope.app.container.container.browser.contents.py to see how
deletion is handled there. nothing special found.
i´m a bit confused, please help :)
tnx
Dominique
More information about the Zope3-users
mailing list