Revision 4042
Added by Aaron Marcuse-Kubitza over 12 years ago
map | ||
---|---|---|
271 | 271 |
mappings[i] = [in_, nodes] |
272 | 272 |
if id_node == None: |
273 | 273 |
warnings.warn(UserWarning('Map warning: No mappings')) |
274 |
xml_func.simplify(root) |
|
274 | 275 |
sys.stdout.write('Put template:\n'+str(root)) |
275 | 276 |
sys.stdout.flush() |
276 | 277 |
|
Also available in: Unified diff
bin/map: Run new xml_func.simplify() on the root before printing the put template, so that _alts and _merges with only one element for the current datasource will be printed in their simplified form (with the _alt/_merge removed). This faciliates automated testing after an _alt/_merge suffix has been added, because the put template provided as part of the automated test will only change for those datasources that actually have an entry for both mappings, which greatly reduces the number of tests that need to be accepted.