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

Gilles Lenfant glenfant@bigfoot.com
Tue, 2 Oct 2001 23:38:06 +0200


Thanks Stefan,

do you mean I should write
>>> app.get_transaction().commit()

Cheers

--Gilles

> > >>> 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?
> 
> 
> Yep, it's called get_transaction().commit()
> 
> setting SUPPRESS_ACCESSRULE in the start script will disable the access
> rules as well, BTW
> 
> Stefan
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>