Project

General

Profile

« Previous | Next » 

Revision 3652

db_xml.py: Renamed put_table_special_funcs to put_special_funcs because it is now used by put() as well

View differences:

lib/db_xml.py
49 49
    
50 50
    def __str__(self): return self.name
51 51

  
52
put_table_special_funcs = set(['_simplifyPath'])
52
put_special_funcs = set(['_simplifyPath'])
53 53

  
54 54
def put(db, node, row_ins_ct_ref=None, on_error=exc.raise_,
55 55
    col_defaults={}, in_table=None, parent_ids_loc=None, next=None):
bin/map
335 335
                
336 336
                # Strip XML functions not in the DB
337 337
                def is_rel_func(name):
338
                    return (name in db_xml.put_table_special_funcs
338
                    return (name in db_xml.put_special_funcs
339 339
                        or sql.function_exists(in_db, sql_gen.Function(name)))
340 340
                xml_func.process(root, is_rel_func=is_rel_func)
341 341
                if debug: log_debug('Putting stripped:\n'+str(root))

Also available in: Unified diff