backport fixes from MLZ repo

- unification of secop.stringio/bytesio to secop.io
- persistent parameters

Change-Id: I76307cccc5191ac8cbb5cfec6fb7450fcf6945f1
This commit is contained in:
2021-07-27 08:11:51 +02:00
parent 2ff3a17427
commit a037accbb8
6 changed files with 17 additions and 127 deletions

View File

@ -233,7 +233,7 @@ class Parameter(Accessible):
def copy(self):
# deep copy, as datatype might be altered from config
res = Parameter()
res = type(self)()
res.name = self.name
res.init(self.propertyValues)
res.datatype = res.datatype.copy()
@ -363,7 +363,7 @@ class Command(Accessible):
return self
def copy(self):
res = Command()
res = type(self)()
res.name = self.name
res.func = self.func
res.init(self.propertyValues)