class Site(dict):
fields = {
- 'plc': 'TestPLC',
+ 'plcs': ['TestPLC'],
'name': None,
'login_base': None,
'enabled': True,
self.update(fields)
-class Sites(list, Table):
+class Sites(Table):
def __init__(self, sites):
sitelist = [Site(site) for site in sites]
- list.__init__(self, sitelist)
+ Table.__init__(self, sitelist)