[DEV] store data when put modification

This commit is contained in:
Edouard DUPIN 2020-01-20 23:21:32 +01:00
parent 478aca33b5
commit 1fb1b590f1

View File

@ -46,8 +46,10 @@ class DataInterface():
return True
values = []
for elem in dir(self.model):
debug.info("check element : " + elem);
if elem[:2] == "__":
continue
debug.info(" ==> select");
values.append(elem)
have_error = False
for key in _data.keys():
@ -150,6 +152,7 @@ class DataInterface():
if 'id' in elem.keys() \
and elem["id"] == _id:
elem = _value
self.mark_to_store()
return elem
debug.warning("not found element: " + str(len(self.bdd)))
return None