Project

General

Profile

« Previous | Next » 

Revision 6399

bin/map: update_in_label(): Set $source env var to the in_label (datasource name), to make it available to _env()

View differences:

bin/map
182 182
    in_label_ref = [None]
183 183
    col_defaults = {}
184 184
    def update_in_label():
185
        if in_label_ref[0] != None and out_is_db:
186
            # TODO: Move this to the mappings as some kind of metadata
187
            col_defaults['source_id'] = db_xml.put(out_db, xpath.path2xml(
188
                'source/shortname="'+in_label_ref[0]+'"'), row_ins_ct_ref)
185
        if in_label_ref[0] != None:
186
            os.environ['source'] = in_label_ref[0]
187
            if out_is_db:
188
                # TODO: Move this to the mappings as some kind of metadata
189
                col_defaults['source_id'] = db_xml.put(out_db, xpath.path2xml(
190
                    'source/shortname="'+in_label_ref[0]+'"'), row_ins_ct_ref)
189 191
    
190 192
    def prep_root():
191 193
        root.clear()

Also available in: Unified diff