XMLnode: when no index, look for attribute on in keyword use
This commit is contained in:
parent
22b6392cc8
commit
7aaa65d4a6
@ -110,7 +110,10 @@ class ModuleState:
|
|||||||
|
|
||||||
def __contains__(self, i):
|
def __contains__(self, i):
|
||||||
"""Return true if i is found in the index"""
|
"""Return true if i is found in the index"""
|
||||||
return i in self.index
|
if self.index:
|
||||||
|
return i in self.index
|
||||||
|
else:
|
||||||
|
return self.hasAttribute(i)
|
||||||
|
|
||||||
def hasAttribute(self, name):
|
def hasAttribute(self, name):
|
||||||
"""DOM like method"""
|
"""DOM like method"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user