示例#1
0
def mainproc():
    result = XMLJSONConverter.xmlToJson(data)
 

#    result = XMLJSONConverter.jsonToXml(data)

#    print 'dd22'
#    print result

 
    return JythonDTO([result])
示例#2
0
def submissionLast(context,
                   main=None,
                   add=None,
                   filterinfo=None,
                   session=None,
                   data=None):
    formId = json.loads(data)['schema']['@formId']
    formInstance = getFormInstance(context, formId)
    formInstance.setContext(session, main, add, None)
    cardData = formInstance.move('+', XMLJSONConverter.jsonToXml(data))
    return cardData
示例#3
0
def mainproc():
    result = XMLJSONConverter.xmlToJson(data)
    return JythonDTO([result])