Revision 1010
Added by Aaron Marcuse-Kubitza almost 13 years ago
map | ||
---|---|---|
205 | 205 |
|
206 | 206 |
doc = xml_dom.create_doc() |
207 | 207 |
root = doc.documentElement |
208 |
def prep_root(): root.clear() |
|
209 |
prep_root() |
|
210 |
|
|
208 | 211 |
if out_is_db: |
209 | 212 |
import db_xml |
210 | 213 |
|
... | ... | |
230 | 233 |
out_pkeys, row_ins_ct_ref, on_error)) |
231 | 234 |
if commit: out_db.commit() |
232 | 235 |
except sql.DatabaseErrors, e: on_error(e) |
233 |
root.clear()
|
|
236 |
prep_root()
|
|
234 | 237 |
|
235 | 238 |
row_ct = process_inputs(root, row_ready) |
236 | 239 |
sys.stdout.write('Inserted '+str(row_ins_ct_ref[0])+ |
Also available in: Unified diff
bin/map: Moved root.clear() into separate function prep_root() that can be called whenever needed