Revision 72
Added by Aaron Marcuse-Kubitza about 13 years ago
map | ||
---|---|---|
43 | 43 |
map_reader = csv.reader(map_stream) |
44 | 44 |
src, dest = map_reader.next()[:2] |
45 | 45 |
def split_col_name(name): |
46 |
name, sep, root = name.partition('/')
|
|
47 |
return name, sep != '', sep+root
|
|
46 |
name, sep, root = name.partition(':')
|
|
47 |
return name, sep != '', root |
|
48 | 48 |
src, in_is_xml, src_root = split_col_name(src) |
49 | 49 |
dest, out_is_xml, dest_root = split_col_name(dest) |
50 | 50 |
assert out_is_xml |
Also available in: Unified diff
Fixed ch_map_root to support subpaths which follow the root by -> rather than /. Changed spreadsheet syntax to have : between label and root.