tools (xml_tools): isXMLUICancelled helper function to check if an XMLUI has been cancelled from raw XML.
This commit is contained in:
parent
c059645abf
commit
7dc9aae5aa
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue