[Zope] adding properties trough pythonscript

massimop at users.berlios.de massimop at users.berlios.de
Sat Oct 16 06:23:43 EDT 2004


On Fri, 2004-10-15 at 19:32 +0200, Dieter Maurer wrote:

> > ...
> >       try:
> >         context.manage_addProperty('prop', 0, 'boolean')
> >         print "prop added<br>"
> >       except:
> >         print "adding prop to",str(obj.id),"failed<br>"
> 
> Do not use "try: ... except:...". It is dangerous. It can easily
> lead to ZODB inconsistencies...

not exactly good news to me....

can you point out some document explaining this?
can I raise exceptions from a python script?

thanks
massimo




More information about the Zope mailing list