git://git.onelab.eu
/
tests.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Setting tag tests-6.0-5
[tests.git]
/
qaapi
/
qa
/
Sites.py
1
import os
2
from Table import Table
3
4
class Site(dict):
5
6
fields = {
7
'plcs': ['TestPLC'],
8
'name': None,
9
'login_base': None,
10
'enabled': True,
11
'abbreviated_name': None,
12
'max_slices': 100,
13
'is_public': True,
14
'url': None
15
}
16
17
def __init__(self, fields = {}):
18
19
dict.__init__(self, self.fields)
20
21
self.update(fields)
22
23
class Sites(Table):
24
def __init__(self, sites):
25
sitelist = [Site(site) for site in sites]
26
Table.__init__(self, sitelist)