Add tags= keywords to all create functions, with unit tests. Resolves #2160
This commit is contained in:
parent
e7b91e11e7
commit
e5b96a2b79
3 changed files with 108 additions and 6 deletions
|
|
@ -51,6 +51,8 @@ class DefaultChannel(ChannelDB, metaclass=TypeclassBase):
|
|||
self.attributes.add("keep_log", cdict["keep_log"])
|
||||
if cdict.get("desc"):
|
||||
self.attributes.add("desc", cdict["desc"])
|
||||
if cdict.get("tags"):
|
||||
self.tags.batch_add(*cdict["tags"])
|
||||
|
||||
def basetype_setup(self):
|
||||
# delayed import of the channelhandler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue