Revision 2549
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/db_xml.py | ||
---|---|---|
145 | 145 |
|
146 | 146 |
input_col_prefix = '$' |
147 | 147 |
|
148 |
put_table_special_funcs = set(['_simplifyPath']) |
|
149 |
|
|
148 | 150 |
def put_table(db, node, in_table, commit=False, in_row_ct_ref=None, |
149 | 151 |
row_ins_ct_ref=None, limit=None, start=0, parent_ids_loc=None, next=None): |
150 | 152 |
''' |
... | ... | |
171 | 173 |
parent_ids_loc=parent_ids_loc, next=next) |
172 | 174 |
|
173 | 175 |
out_table = name_of(node) |
174 |
special_funcs = set(['_simplifyPath']) |
|
175 |
is_func = out_table in special_funcs |
|
176 |
is_func = out_table in put_table_special_funcs |
|
176 | 177 |
|
177 | 178 |
# Divide children into fields and children with fkeys to parent |
178 | 179 |
row = {} |
Also available in: Unified diff
db_xml.py: put_table(): Make special_funcs externally available as module constant put_table_special_funcs