Project

General

Profile

« Previous | Next » 

Revision 2015

bin/map: If outputting to a DB, also create output XML elements for NULL input values. This will help with the transition to using the same XML tree for all rows.

View differences:

inputs/XAL/test/import.specimens.out.ref
1
Inserted 41 new rows into database
1
Inserted 42 new rows into database
inputs/NY/test/import.specimens.out.ref
1
Inserted 31 new rows into database
1
Inserted 35 new rows into database
inputs/ACAD/test/import.specimens.out.ref
1
Inserted 32 new rows into database
1
Inserted 33 new rows into database
inputs/SALVIAS-CSV/test/import.plots.out.ref
1
Inserted 10 new rows into database
1
Inserted 12 new rows into database
inputs/SALVIAS-CSV/test/import.organisms.out.ref
1
Inserted 41 new rows into database
1
Inserted 43 new rows into database
inputs/CTFS/test/import.organisms.out.ref
1
Inserted 23 new rows into database
1
Inserted 36 new rows into database
inputs/SALVIAS/test/import.stems.out.ref
1
Inserted 15 new rows into database
1
Inserted 30 new rows into database
inputs/SALVIAS/test/import.plots.out.ref
1
Inserted 21 new rows into database
1
Inserted 23 new rows into database
inputs/SALVIAS/test/import.organisms.out.ref
1
Inserted 32 new rows into database
1
Inserted 38 new rows into database
inputs/U/test/import.specimens.out.ref
1
Inserted 19 new rows into database
1
Inserted 20 new rows into database
inputs/ARIZ/test/import.specimens.out.ref
1
Inserted 29 new rows into database
1
Inserted 33 new rows into database
inputs/GBIF/test/import.specimens.out.ref
1
Inserted 25 new rows into database
1
Inserted 26 new rows into database
inputs/SpeciesLink/test/import.specimens.out.ref
1
Inserted 32 new rows into database
1
Inserted 35 new rows into database
inputs/MO/test/import.specimens.out.ref
1
Inserted 33 new rows into database
1
Inserted 34 new rows into database
bin/map
216 216
                    if value == None:
217 217
                        log_debug('Getting '+str(in_))
218 218
                        value = cleanup(get_value(in_, row))
219
                    if value != None:
219
                    if out_is_db or value != None:
220 220
                        log_debug('Putting '+str(out))
221 221
                        xpath.put_obj(root, out, row_id, has_types, value)
222 222
            return process_rows(process_row, rows, **kw_args)

Also available in: Unified diff