xml files: the noupdate attribute must be set to something different that '', '0' and 'False' to be active

bzr revid: christophe@tinyerp.com-20081015075223-nfpmqa5fdf4kmgwi
This commit is contained in:
Christophe Simonis
2008-10-15 09:52:23 +02:00
parent 9d11c67875
commit c1d58b4ffb
+1 -1
View File
@@ -202,7 +202,7 @@ class assertion_report(object):
class xml_import(object):
def isnoupdate(self, data_node = None):
return self.noupdate or (data_node and data_node.getAttribute('noupdate'))
return self.noupdate or (data_node and data_node.getAttribute('noupdate').strip() not in ('', '0', 'False'))
def get_context(self, data_node, node, eval_dict):
data_node_context = (data_node and data_node.getAttribute('context').encode('utf8'))