doc
FossilOrigin-Name: a4647dcd3d601d0181c5dbb245cf4c83c280b4aa4832261ce10ef1172d3c4648
This commit is contained in:
parent
0e5235b095
commit
b60fe675c1
@ -435,12 +435,15 @@ class FachoXML:
|
|||||||
def exist_element(self, xpath):
|
def exist_element(self, xpath):
|
||||||
elem = self.get_element(xpath)
|
elem = self.get_element(xpath)
|
||||||
|
|
||||||
|
# no se encontro elemento
|
||||||
if elem is None:
|
if elem is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# el placeholder no ha sido populado
|
||||||
if elem.get('facho_placeholder') == 'True':
|
if elem.get('facho_placeholder') == 'True':
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
# el valor opcional no ha sido populado
|
||||||
if elem.get('facho_optional') == 'True':
|
if elem.get('facho_optional') == 'True':
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user