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 (1f4c2bb1046). 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
diff --git a/zuul/model.py b/zuul/model.py
index c5c5c7d..9d8ff53 100644
--- a/zuul/model.py
+++ b/zuul/model.py
@@ -245,17 +245,6 @@
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)
diff --git a/zuul/scheduler.py b/zuul/scheduler.py
index 55b1624..ae74066 100644
--- a/zuul/scheduler.py
+++ b/zuul/scheduler.py
@@ -849,29 +849,6 @@
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 = {}