예제 #1
0
    def fromJSON(self, val):
        """
    Updates an object, based on a JSON representation
    """
        dict_value = json.loads(val)

        # Convert the dict_value to XML representation
        xml_value = xmltodict.unparse(dict_value)

        f = StringIO(xml_value)
        return XMLExportImport.importXML(self._p_jar, f)
def import_object_from_xml(where, fp):
    return XMLExportImport.importXML(where._p_jar, fp)
예제 #3
0
def import_object_from_xml(where, fp):
    return XMLExportImport.importXML(where._p_jar, fp)