In DATAS, attribute stated by _ are ignored
This commit is contained in:
parent
387ecc7d5c
commit
07863d0718
|
@ -148,6 +148,7 @@ class ModuleState:
|
||||||
"""Serialize this node as a XML node"""
|
"""Serialize this node as a XML node"""
|
||||||
attribs = {}
|
attribs = {}
|
||||||
for att in self.attributes.keys():
|
for att in self.attributes.keys():
|
||||||
|
if att[0] != "_": # Don't save attribute starting by _
|
||||||
if isinstance(self.attributes[att], datetime):
|
if isinstance(self.attributes[att], datetime):
|
||||||
attribs[att] = str(time.mktime(self.attributes[att].timetuple()))
|
attribs[att] = str(time.mktime(self.attributes[att].timetuple()))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user