Project

General

Profile

« Previous | Next » 

Revision 6411

db_xml.py: put(): _setDefault(): Fixed bug where need to copy col_defaults before calling update() on it, to avoid modifying the input value (which may be reused by the caller, expecting it to be unmodified)

View differences:

lib/db_xml.py
107 107
        try: path = row.pop('path')
108 108
        except KeyError, e: wrap_e(e)
109 109
        
110
        col_defaults = col_defaults.copy() # don't modify input!
110 111
        col_defaults.update([(k, put_(v)) for k, v in row.iteritems()])
111 112
        return put_(path)
112 113
    elif out_table == '_simplifyPath':

Also available in: Unified diff