1
0
Fork 0

XMLnode: when no index, look for attribute on in keyword use

This commit is contained in:
nemunaire 2014-08-08 19:09:18 +02:00
parent 22b6392cc8
commit 7aaa65d4a6
1 changed files with 4 additions and 1 deletions

View File

@ -110,7 +110,10 @@ class ModuleState:
def __contains__(self, i):
"""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):
"""DOM like method"""