[Zope] Deleting an object from python (command line)

Gilles Lenfant glenfant@bigfoot.com
Mon, 1 Oct 2001 19:13:38 +0200


Hi,

I made a buggy access rule at the root of ZODB that makes the ZMI
unreachable (error in Python script)
I want to delete this accessrule

so I stopped Zope and

% cd $ZOPEROOT/lib/python
% $ZOPEROOT/bin/python

>>> import Zope
>>> app = Zope.app()
>>> dir(app)
[..., 'accessrule'...]
>>> app.manage_delObjects(['accessrule'])
>>> dir(app)
[...] # no more "accessrule"
>>> ^D

but 'accessrule' is STILL HERE !
When I do again :

% $ZOPEROOT/bin/python

>>> import Zope
>>> app = Zope.app()
>>> dir(app)
[..., 'accessrule'...] # Thought it was deleted !!!

Did I miss something ?
Is there a "commit" like to do before quitting python?

Thanks in advance

--Gilles