Hi all,

I'm developing an app using web.py which renders an XML tree (something 
like xslt).
I validate the document against an xsd in most GET requests.
To avoid catching this kind of exception in every GET method, I added a 
processor which looks like :

*def validate_xml(handler):*
*  try:*
*    return handler()*
*  except MyXmlException as e:*
*    return render.document_error(e)*

but the exception is never caught in my processor, but at upper level by 
app itself.

Any idea to get the exception caught in my handler ??

Thanx a lot,

Seb.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/webpy/-/GQxeHKVw8pcJ.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to