11 Apr
2007
11 Apr
'07
5:38 p.m.
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