no longer inherit list directly, Table inherits list
[tests.git] / qaapi / qa / Sites.py
index 406895b..52559aa 100644 (file)
@@ -4,7 +4,7 @@ from Table import Table
 class Site(dict):
 
      fields = {
-       'plc': 'TestPLC',
+       'plcs': ['TestPLC'],
        'name': None,
        'login_base': None,
        'enabled': True,
@@ -20,7 +20,7 @@ class Site(dict):
        
        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)