Remove backend for do() calls
This commit is contained in:
parent
40a8bc0ce1
commit
628c63f899
33 changed files with 112 additions and 113 deletions
|
|
@ -123,7 +123,7 @@ class Boobsize(ReplApplication):
|
|||
"""
|
||||
self.change_path([u'gauges'])
|
||||
self.start_format()
|
||||
for backend, gauge in self.do('iter_gauges', pattern or None, caps=CapGauge):
|
||||
for gauge in self.do('iter_gauges', pattern or None, caps=CapGauge):
|
||||
self.cached_format(gauge)
|
||||
|
||||
def complete_search(self, text, line, *ignored):
|
||||
|
|
@ -141,7 +141,7 @@ class Boobsize(ReplApplication):
|
|||
_id, backend_name = self.parse_id(gauge)
|
||||
|
||||
self.start_format()
|
||||
for backend, sensor in self.do('iter_sensors', _id, pattern=pattern, backends=backend_name, caps=CapGauge):
|
||||
for sensor in self.do('iter_sensors', _id, pattern=pattern, backends=backend_name, caps=CapGauge):
|
||||
self.format(sensor)
|
||||
|
||||
def do_history(self, line):
|
||||
|
|
@ -154,7 +154,7 @@ class Boobsize(ReplApplication):
|
|||
_id, backend_name = self.parse_id(gauge)
|
||||
|
||||
self.start_format()
|
||||
for backend, measure in self.do('iter_gauge_history', _id, backends=backend_name, caps=CapGauge):
|
||||
for measure in self.do('iter_gauge_history', _id, backends=backend_name, caps=CapGauge):
|
||||
self.format(measure)
|
||||
|
||||
def complete_last_sensor_measure(self, text, line, *ignored):
|
||||
|
|
@ -172,5 +172,5 @@ class Boobsize(ReplApplication):
|
|||
_id, backend_name = self.parse_id(gauge)
|
||||
|
||||
self.start_format()
|
||||
for backend, measure in self.do('get_last_measure', _id, backends=backend_name, caps=CapGauge):
|
||||
for measure in self.do('get_last_measure', _id, backends=backend_name, caps=CapGauge):
|
||||
self.format(measure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue