Revision 857
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xml_dom.py | ||
---|---|---|
200 | 200 |
|
201 | 201 |
minidom.Node.__iter__ = lambda self: NodeIter(self) |
202 | 202 |
|
203 |
def __Node_str(self): return self.toprettyxml(**toprettyxml_config) |
|
203 |
def __Node_str(self): |
|
204 |
return strings.one_line(self.toprettyxml(**toprettyxml_config)) |
|
204 | 205 |
minidom.Node.__str__ = __Node_str |
205 | 206 |
minidom.Node.__repr__ = __Node_str |
206 | 207 |
minidom.Element.__repr__ = __Node_str |
bin/map | ||
---|---|---|
129 | 129 |
for in_, out in mappings: |
130 | 130 |
value = metadata_value(in_) |
131 | 131 |
if value == None: |
132 |
log_start('Getting '+str(in_).rstrip(), debug)
|
|
132 |
log_start('Getting '+str(in_), debug) |
|
133 | 133 |
value = get_value(in_, row) |
134 | 134 |
log_done(debug) |
135 | 135 |
if value != None: xpath.put_obj(root, out, row_id, |
Also available in: Unified diff
xml_dom.py: Remove extra newlines from single-line strings (bin/map doesn't need to do this itself anymore)