예제 #1
0
def process_instance(context, xfinst, xform_path):
    inst = util.strip_namespaces(et.fromstring(xfinst))
    return convert_odm(context, util.xmlfile(xfinst), load_source(xform_path=xform_path))
예제 #2
0
def submit(conn, instnode):
    odm_raw = util.dump_xml(util.strip_namespaces(instnode))

    resp = getattr(conn.service, 'import')(Raw(odm_raw))
    if resp.result.lower() != 'success':
        raise Exception([str(e) for e in resp.error])