Revision 300
Added by Aaron Marcuse-Kubitza almost 13 years ago
db_xml.py | ||
---|---|---|
89 | 89 |
id_ = sql.get(db, table, row, pkey_, True, row_ct_ref) |
90 | 90 |
if store_ids: xml_dom.set_id(node, id_) |
91 | 91 |
break |
92 |
except sql.NullValueException, ex:
|
|
92 |
except sql.NullValueException, e: |
|
93 | 93 |
if try_num > 0: raise # exception still raised after retry |
94 |
if store_ids and is_ptr(ex.col):
|
|
94 |
if store_ids and is_ptr(e.col): |
|
95 | 95 |
# Search for required column in ancestors and their children |
96 |
target = find_by_name(node, ptr_type_guess(ex.col))
|
|
96 |
target = find_by_name(node, ptr_type_guess(e.col)) |
|
97 | 97 |
if target == None: raise |
98 |
row[ex.col] = xml_dom.get_id(target)
|
|
98 |
row[e.col] = xml_dom.get_id(target) |
|
99 | 99 |
else: raise |
100 | 100 |
|
101 | 101 |
# Insert children with fkeys to parent |
Also available in: Unified diff
Renamed ex.py to exc.py