Drop formatStatusHTML() methods

The HTML build-in /status page used to report a nicely crafted HTML
report of the jobs being run.  It has been removed when switching to
Gearman (1f4c2bb104).  We now provide a /status.json and an example
webapp to format the json.

The formatStatusHTML() methods did not get cleaned up.

Change-Id: I3051e81894461fc95d7cc238df1139b939fe01a2
This commit is contained in:
Antoine Musso 2014-05-07 15:35:26 +02:00
parent 11041d2130
commit 9a00e99c13
2 changed files with 0 additions and 34 deletions

View File

@ -245,17 +245,6 @@ class Pipeline(object):
items.extend(shared_queue.queue)
return items
def formatStatusHTML(self):
ret = ''
for queue in self.queues:
if len(self.queues) > 1:
s = 'Change queue: %s' % queue.name
ret += s + '\n'
ret += '-' * len(s) + '\n'
for item in queue.queue:
ret += self.formatStatus(item, html=True)
return ret
def formatStatusJSON(self):
j_pipeline = dict(name=self.name,
description=self.description)

View File

@ -849,29 +849,6 @@ class Scheduler(threading.Thread):
return
pipeline.manager.onMergeCompleted(event)
def formatStatusHTML(self):
ret = '<html><pre>'
if self._pause:
ret += '<p><b>Queue only mode:</b> preparing to '
if self._exit:
ret += 'exit'
ret += ', queue length: %s' % self.trigger_event_queue.qsize()
ret += '</p>'
if self.last_reconfigured:
ret += '<p>Last reconfigured: %s</p>' % self.last_reconfigured
keys = self.layout.pipelines.keys()
for key in keys:
pipeline = self.layout.pipelines[key]
s = 'Pipeline: %s' % pipeline.name
ret += s + '\n'
ret += '-' * len(s) + '\n'
ret += pipeline.formatStatusHTML()
ret += '\n'
ret += '</pre></html>'
return ret
def formatStatusJSON(self):
data = {}