Revision 461
Added by Aaron Marcuse-Kubitza about 13 years ago
map | ||
---|---|---|
176 | 176 |
assert xml_dom.has_one_child(root) |
177 | 177 |
try: |
178 | 178 |
sql.with_savepoint(out_db, lambda: db_xml.put(out_db, |
179 |
root.firstChild, False, row_ct_ref, out_pkeys))
|
|
179 |
root.firstChild, out_pkeys, row_ct_ref))
|
|
180 | 180 |
if commit: out_db.commit() |
181 | 181 |
except sql.DatabaseErrors, e: on_error(e) |
182 | 182 |
root.clear() |
Also available in: Unified diff
db_xml.py: put(): Added on_error handler. Reordered arguments according to how often they are likely to be used.