tools (xml_tools): isXMLUICancelled helper function to check if an XMLUI has been cancelled from raw XML.

This commit is contained in:
Goffi 2019-01-03 20:49:21 +01:00
commit 7dc9aae5aa

View file

@ -327,6 +327,11 @@ def formEscape(name):
return u"%s%s" % (SAT_FORM_PREFIX, name)
def isXMLUICancelled(raw_xmlui):
"""Tell if an XMLUI has been cancelled by checking raw XML"""
return C.bool(raw_xmlui.get(u'cancelled', C.BOOL_FALSE))
def XMLUIResultToElt(xmlui_data):
"""Construct result domish.Element from XMLUI result.