Expose new disk_type
field for tempmon client views
This commit is contained in:
parent
6c1d67c966
commit
5e49c2709b
|
@ -62,6 +62,7 @@ class TempmonClientView(MasterView):
|
||||||
'config_key',
|
'config_key',
|
||||||
'hostname',
|
'hostname',
|
||||||
'location',
|
'location',
|
||||||
|
'disk_type',
|
||||||
'delay',
|
'delay',
|
||||||
'probes',
|
'probes',
|
||||||
'notes',
|
'notes',
|
||||||
|
@ -88,6 +89,9 @@ class TempmonClientView(MasterView):
|
||||||
g.filters['location'].default_verb = 'contains'
|
g.filters['location'].default_verb = 'contains'
|
||||||
g.set_link('location')
|
g.set_link('location')
|
||||||
|
|
||||||
|
# disk_type
|
||||||
|
g.set_enum('disk_type', self.enum.TEMPMON_DISK_TYPE)
|
||||||
|
|
||||||
# archived
|
# archived
|
||||||
g.filters['archived'].default_active = True
|
g.filters['archived'].default_active = True
|
||||||
g.filters['archived'].default_verb = 'is_false'
|
g.filters['archived'].default_verb = 'is_false'
|
||||||
|
@ -98,6 +102,10 @@ class TempmonClientView(MasterView):
|
||||||
# config_key
|
# config_key
|
||||||
f.set_validator('config_key', self.unique_config_key)
|
f.set_validator('config_key', self.unique_config_key)
|
||||||
|
|
||||||
|
# disk_type
|
||||||
|
f.set_enum('disk_type', self.enum.TEMPMON_DISK_TYPE)
|
||||||
|
f.widgets['disk_type'].values.insert(0, ('', "(unknown)"))
|
||||||
|
|
||||||
# probes
|
# probes
|
||||||
f.set_renderer('probes', self.render_probes)
|
f.set_renderer('probes', self.render_probes)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue