Project

General

Profile

« Previous | Next » 

Revision 312

db_xml.py: Removed no longer needed xml2db()

View differences:

db_xml.py
102 102
    for child in children: put(db, child, store_ids, row_ct_ref, pkeys, id_)
103 103
    
104 104
    return id_
105

  
106
def xml2db(db, node, commit=False, row_ct_ref=None):
107
    iter_ = xml_dom.NodeElemIter(node)
108
    util.skip(iter_, xml_dom.is_text) # skip metadata
109
    for child in iter_:
110
        try:
111
            put(db, child, False, row_ct_ref)
112
            if commit: db.commit()
113
        except Exception:
114
            db.rollback()
115
            traceback.print_exc()

Also available in: Unified diff