mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 04:12:02 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -83,6 +83,8 @@ def locate_node(arch, spec):
|
|||
"""
|
||||
if spec.tag == 'xpath':
|
||||
expr = spec.get('expr')
|
||||
if expr is None:
|
||||
raise ValidationError(_lt("Missing 'expr' attribute in xpath specification"))
|
||||
try:
|
||||
xPath = etree.ETXPath(expr)
|
||||
except etree.XPathSyntaxError as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue