Revision 5234
Added by Aaron Marcuse-Kubitza over 12 years ago
map | ||
---|---|---|
178 | 178 |
if in_label_ref[0] != None and out_is_db: |
179 | 179 |
# TODO: Move this to the mappings as some kind of metadata |
180 | 180 |
col_defaults['datasource_id'] = db_xml.put(out_db, xpath.path2xml( |
181 |
'party/organizationname="'+in_label_ref[0]+'"'), row_ins_ct_ref) |
|
181 |
'party:[datasource_id=0]/organizationname="'+in_label_ref[0]+'"' |
|
182 |
), row_ins_ct_ref) |
|
182 | 183 |
|
183 | 184 |
def prep_root(): |
184 | 185 |
root.clear() |
Also available in: Unified diff
schemas/vegbien.sql: party: Made it datasource-scoped. Since this creates a recursive fkey, a datasource (a root party) should point to itself in this field, which will happen automatically by setting it to the special value 0.