From 7992ff38d559bb3c0c0223efcf41b541bae4add7 Mon Sep 17 00:00:00 2001 From: Rodrigo Lazo Date: Fri, 14 Oct 2011 10:06:11 -0300 Subject: [PATCH] Removed spurious method. --- monitor/http_display.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/monitor/http_display.py b/monitor/http_display.py index 78c2f15..15b0289 100755 --- a/monitor/http_display.py +++ b/monitor/http_display.py @@ -131,34 +131,6 @@ class MonitorHttpHandler(object): references["items"] = [{'hostname' : k, 'value': v.get_latest()} for k, v in data.iteritems()] return template.render(references) - def host(self, name): - """Displays information about a single host. - - Shows a series of plots displaying each collected variable - individually. - - Args: - - `name`: String, host to display. - - Template: simple.html - Vars: title, timestamp, body. - """ - template = self.env.get_template('host.html') - references = self._get_default_references() - references["title"] = "Historic Values of host: %s" % name - data = self._store.get_group(name) - if data: - items = [] - for k, entry in data.iteritems(): - values = entry.get_all() - tuples = [x.as_tuple() for x in values] - - # filename, _ = plotting.new_graph(tuples, k, self._static_path) - filename, _ = plotting.gnuplot_new_graph(tuples, k, self._static_path) - items.append({'file': filename, 'value': values[-1]}) - references["items"] = items - return template.render(references) - @cherrypy.expose def host(self, name): """Displays information about a single host. -- 2.11.4.GIT