In order to avoid zodb implosion, is it sufficient to raise an xmlrpclib
Fault object from a method where some validation was not successful?
Will zope abort transactions and avoid an other avoidable bad things
from happening? Do I have to use fault or can I raise just any error an
ZPublisher.xmlrpc will marshall it
into <fault></fault>?
from xmlrpclib import Fault
SomeClass(SimpleItem):
...
def myMethod(self,stuff=[]):
if type(stuff) != list:
f=Fault
f(27,"stuff must be a list")
raise f
else:
print stuff
Thanks,
Kevin
_______________________________________________
Zope maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )