qvx wrote:
Simon wrote:
qvx wrote:
I guess that I have nothing against ticket #258. However, to
automagically call the same function twice (in hope that the next time
it will fare better) seems like "overdesign".
It's called twice under the assumption, or hope if you prefer, that the
error will be handled in some manner.
I didn't know I was handling an error. How can I detect that I am
handling an error?
Declare tg_errors parameter for your method:
@expose()
def foo(self, tg_errors=None):
...
Any resulting errors will be passed back through tg_errors, either as a
dictionary containing key:exception pairs (where key is usually an
argument name) or an exception.
Simon