fix initwrite behaviour

with handlers, a parameter from the cfg file which is not the
first of parameters with the same handler were not written.
fix: write_<param> method is called for all parameters in
<module>.writeDict even if there is no poll entry.

with this fix, the write_<method> is called even when a parameter
is not polled.
This commit is contained in:
l_samenv
2020-09-25 11:19:17 +02:00
parent 587b170f6a
commit f7576cf541
4 changed files with 38 additions and 35 deletions

View File

@ -163,7 +163,8 @@ class Module:
def pollOneParam(self, pname):
getattr(self, 'read_' + pname)()
writeOrPoll = pollOneParam
def writeInitParams(self):
pass
def __repr__(self):
rdict = self.__dict__.copy()