Project

General

Profile

« Previous | Next » 

Revision 311

bin/map: out_is_db uses use_row instead of xml2db()

View differences:

bin/map
160 160
            row_ct_ref = [0]
161 161
            def use_row(root):
162 162
                try:
163
                    put(out_db, root, False, row_ct_ref, out_pkeys)
163
                    db_xml.put(out_db, root, False, row_ct_ref, out_pkeys)
164 164
                    if commit: db.commit()
165 165
                except Exception:
166 166
                    out_db.rollback()
167 167
                    traceback.print_exc()
168
            db_xml.xml2db(out_db, process_input(use_row).documentElement,
169
                commit, row_ct_ref)
168
            map(use_row, process_input(use_row).firstChild)
170 169
            print 'Inserted '+str(row_ct_ref[0])+' rows'
171 170
        finally:
172 171
            out_db.rollback()

Also available in: Unified diff