Revision 311
Added by Aaron Marcuse-Kubitza almost 13 years ago
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
bin/map: out_is_db uses use_row instead of xml2db()