Revision 971
Added by Aaron Marcuse-Kubitza almost 13 years ago
xpath.py | ||
---|---|---|
190 | 190 |
if elem.value != None: xml_dom.set_value(node, elem.value) |
191 | 191 |
nodes.append(node) |
192 | 192 |
|
193 |
value_ = value(xpath) |
|
193 | 194 |
xpath = xpath[1:] # rest of XPath |
194 | 195 |
|
195 | 196 |
next = [] |
... | ... | |
229 | 230 |
|
230 | 231 |
for branch in elem.other_branches: |
231 | 232 |
branch = copy.deepcopy(branch) |
232 |
set_value(branch, value(xpath))
|
|
233 |
set_value(branch, value_)
|
|
233 | 234 |
next += get(node, branch, create, last_only, limit) |
234 | 235 |
|
235 | 236 |
return next |
Also available in: Unified diff
xpath.py: Fixed bug where value of XPath (used for copying to other branches) is retrieved after first XPath element is popped rather than before, which can sometimes leave an empty XPath for value() to run on