Revision 23
Added by Aaron Marcuse-Kubitza over 12 years ago
xpath.py | ||
---|---|---|
128 | 128 |
if obj != None: id_ = str(int(xml_util.get_id(obj)) + 1) |
129 | 129 |
else: id_ = '0' |
130 | 130 |
xml_util.set_value(doc, node, id_) |
131 |
else: last_only = False |
|
131 | 132 |
set_id(target, id_) |
132 |
return get(doc, target, create, False)
|
|
133 |
return get(doc, target, create, last_only)
|
|
133 | 134 |
|
134 | 135 |
parent = node |
135 | 136 |
elem_idx += 1 |
Also available in: Unified diff
In data2xml, fixed xpath.get() to do last_only optimization properly for pointer targets