From 4b0b7f839b33dc4586c6e9e0b3ed5524c096934b Mon Sep 17 00:00:00 2001 From: Florent Date: Tue, 17 Dec 2013 15:12:14 +0100 Subject: [PATCH] ICapGauge in wetboobs is now depreciated closes #1284 --- weboob/applications/wetboobs/wetboobs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weboob/applications/wetboobs/wetboobs.py b/weboob/applications/wetboobs/wetboobs.py index 59f6983a..be7fdda6 100644 --- a/weboob/applications/wetboobs/wetboobs.py +++ b/weboob/applications/wetboobs/wetboobs.py @@ -158,6 +158,7 @@ class WetBoobs(ReplApplication): self.start_format() for backend, gauge in self.do('iter_gauges', pattern or None, caps=ICapGauge): self.cached_format(gauge) + print >>sys.stderr, 'This command is deprecated and will be removed in the next release. You should use boobsize application.\n' def complete_gauge(self, text, line, *ignored): args = line.split(' ') @@ -176,6 +177,7 @@ class WetBoobs(ReplApplication): self.start_format() for backend, measure in self.do('iter_gauge_history', _id, backends=backend_name, caps=ICapGauge): self.format(measure) + print >>sys.stderr, 'This command is deprecated and will be removed in the next release. You should use boobsize application.\n' def complete_last_sensor_measure(self, text, line, *ignored): args = line.split(' ') @@ -194,6 +196,7 @@ class WetBoobs(ReplApplication): self.start_format() for backend, measure in self.do('get_last_measure', _id, backends=backend_name, caps=ICapGauge): self.format(measure) + print >>sys.stderr, 'This command is deprecated and will be removed in the next release. You should use boobsize application.\n' def do_sensors(self, line): """ @@ -207,3 +210,4 @@ class WetBoobs(ReplApplication): self.start_format() for backend, sensor in self.do('iter_sensors', _id, pattern=pattern, backends=backend_name, caps=ICapGauge): self.format(sensor) + print >>sys.stderr, 'This command is deprecated and will be removed in the next release. You should use boobsize application.\n'