[pod] Added param Renderer.raiseOnError (False by default), that, if True, will force the Renderer to raise an error instead of dumping it into a note in the pod result.

This commit is contained in:
Gaetan Delannay 2014-06-23 12:54:32 +02:00
parent 114223a114
commit f8f3c0e865
6 changed files with 75 additions and 61 deletions

View file

@ -30,6 +30,8 @@ class PxEnvironment(XmlEnvironment):
# XmlParser for better performance. Indeed, the base parser and env
# process namespaces, and we do not need this for the PX parser.
self.currentElem = None
# Exceptions are always raised (for pod, it is not the case)
self.raiseOnError = True
def addSubBuffer(self):
subBuffer = self.currentBuffer.addSubBuffer()