Revision 3646
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/db_xml.py | ||
---|---|---|
201 | 201 |
return _put_table_part(db, node, in_table, row_ins_ct_ref, on_error, |
202 | 202 |
col_defaults, parent_ids_loc, next) |
203 | 203 |
|
204 |
def on_error_(e): |
|
205 |
exc.add_msg(e, 'node:\n'+str(node)) |
|
206 |
on_error(e) |
|
207 |
|
|
204 | 208 |
is_func = xml_func.is_func(node) |
205 | 209 |
out_table = name_of(node) |
206 | 210 |
|
... | ... | |
268 | 272 |
|
269 | 273 |
# Insert node |
270 | 274 |
pkeys_loc = sql_io.put_table(db, out_table, in_tables, row, row_ins_ct_ref, |
271 |
next, col_defaults, on_error) |
|
275 |
next, col_defaults, on_error_)
|
|
272 | 276 |
|
273 | 277 |
sql.empty_temp(db, set(in_tables) - no_empty) |
274 | 278 |
|
Also available in: Unified diff
db_xml.py: _put_table_part(): Append the node to errors handled with on_error()