Revision 58
Added by Aaron Marcuse-Kubitza almost 13 years ago
scripts/map | ||
---|---|---|
28 | 28 |
else: return None |
29 | 29 |
from_db_config = get_db_config('from') |
30 | 30 |
to_db_config = get_db_config('to') |
31 |
uses_map = not (from_db_config == None and to_db_config != None) |
|
31 |
in_is_db = from_db_config != None |
|
32 |
out_is_db = to_db_config != None |
|
33 |
uses_map = in_is_db or not out_is_db |
|
32 | 34 |
|
33 | 35 |
# Parse args |
34 | 36 |
prog_name = sys.argv[0] |
... | ... | |
68 | 70 |
if out.startswith('/*s/'): has_types = True # *s for type elem |
69 | 71 |
out = xpath.parse(out) |
70 | 72 |
if in_is_xml: pass # TODO: process the mapping |
73 |
elif in_is_db: pass # TODO: process the mapping |
|
71 | 74 |
else: map_[in_] = out |
72 | 75 |
map_stream.close() |
73 | 76 |
|
Also available in: Unified diff
map: Added stub for database input