What happened to object in ZODB when I del this? Is this object mark for undo isnt it? How can I clear Zope Recycle bin? And how I can modify manage_beforeDelete func to cancel del-operation(click on Delete button)? Regard, Serg
Serg wrote:
What happened to object in ZODB when I del this?
It's a bit complicated, but in essense it's marked as deleted.
How can I clear Zope Recycle bin?
You go to Control Panel, and then Database, aand press the purge button.
And how I can modify manage_beforeDelete func to cancel del-operation(click on Delete button)?
You can't. Or at least, you don't want to. If you want a confirmation screen, it should appeare before the object is deleted.
Lennart Regebro wrote:
How can I clear Zope Recycle bin?
You go to Control Panel, and then Database, aand press the purge button.
I thin kyou mean 'pack'?
And how I can modify manage_beforeDelete func to cancel del-operation(click on Delete button)?
You can't. Or at least, you don't want to. If you want a confirmation screen, it should appeare before the object is deleted.
You can Undo using the Undo tab in the ZMI. nt to do it programatically, it's "hard" :-( Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
Lennart Regebro -
Serg