Revision 889
Added by Aaron Marcuse-Kubitza almost 13 years ago
lib/xpath.py | ||
---|---|---|
224 | 224 |
else: last_only = False |
225 | 225 |
set_id(xpath, id_) |
226 | 226 |
else: root = node |
227 |
next += get(root, xpath, create, last_only) |
|
227 |
next += get(root, xpath, create, last_only, limit)
|
|
228 | 228 |
|
229 | 229 |
for branch in elem.other_branches: |
230 | 230 |
branch = copy.deepcopy(branch) |
231 | 231 |
set_value(branch, value(xpath)) |
232 |
next += get(node, branch, create, last_only) |
|
232 |
next += get(node, branch, create, last_only, limit)
|
|
233 | 233 |
|
234 | 234 |
return next |
235 | 235 |
|
Also available in: Unified diff
xpath.py: get(): Fixed bug where limit was not passed to recursive get() calls