Project

General

Profile

« Previous | Next » 

Revision 2806

db_xml.py: put_table(): Take on_error param like row-based put()

View differences:

lib/db_xml.py
144 144
put_table_special_funcs = set(['_simplifyPath'])
145 145

  
146 146
def put_table(db, node, in_table, commit=False, in_row_ct_ref=None,
147
    row_ins_ct_ref=None, limit=None, start=0, parent_ids_loc=None, next=None):
147
    row_ins_ct_ref=None, limit=None, start=0, on_error=exc.raise_,
148
    parent_ids_loc=None, next=None):
148 149
    '''
149 150
    @param node The XML tree that transforms the input to the output. Similar to
150 151
        put()'s node param, but with the input column name prefixed by
......
170 171
    
171 172
    def put_table_(node):
172 173
        return put_table(db, node, in_table, commit, None, row_ins_ct_ref,
173
            parent_ids_loc=parent_ids_loc, next=next)
174
            on_error=on_error, parent_ids_loc=parent_ids_loc, next=next)
174 175
    
175 176
    is_func = xml_func.is_func(node)
176 177
    out_table = name_of(node)

Also available in: Unified diff