implement some basic infrastructure to present device forms

This commit is contained in:
Jakob Ketterl
2021-02-19 00:46:52 +01:00
parent 872c7a4bfd
commit 012952f6f3
4 changed files with 58 additions and 9 deletions

View File

@@ -71,7 +71,7 @@ class SdrService(object):
def getSources():
SdrService._loadProps()
for id in SdrService.sdrProps.keys():
if not id in SdrService.sources:
if id not in SdrService.sources:
props = SdrService.sdrProps[id]
sdrType = props["type"]
className = "".join(x for x in sdrType.title() if x.isalnum()) + "Source"