Revision 3676
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/db_xml.py | ||
---|---|---|
53 | 53 |
|
54 | 54 |
def put(db, node, row_ins_ct_ref=None, on_error=exc.reraise, |
55 | 55 |
col_defaults={}, in_table=None, parent_ids_loc=None, next=None): |
56 |
''' |
|
57 |
@param node To use an entire XML document, pass root.firstChild. |
|
58 |
''' |
|
59 |
if node == None: return None # when no rows, root.firstChild == None |
|
60 |
|
|
56 | 61 |
def put_(node, in_row_ct_ref=None): |
57 | 62 |
return put(db, node, row_ins_ct_ref, on_error, col_defaults, |
58 | 63 |
in_table, parent_ids_loc, next) |
Also available in: Unified diff
db_xml.py: put(): Support datasets with no rows, where root.firstChild == None. Documented that to use an entire XML document, you need to pass root.firstChild rather than root.