[gen] Mixin.xml: if an error occurs, log it before xml-marshalling it to the caller app.

This commit is contained in:
Gaetan Delannay 2014-12-12 14:47:39 +01:00
parent 897b183b01
commit 8511c22612

View file

@ -533,6 +533,7 @@ class BaseMixin:
except Exception, e:
tb = sutils.Traceback.get()
res = XmlMarshaller(rootTag='exception').marshall(tb)
self.log(tb, type='error')
import transaction
transaction.abort()
return res