Author: justi9
Date: 2007-11-06 13:58:52 -0500 (Tue, 06 Nov 2007)
New Revision: 1253
Modified:
mgmt/cumin/python/cumin/__init__.py
mgmt/notes/justin-todo.txt
Log:
Removes old, unused pages.
Modified: mgmt/cumin/python/cumin/__init__.py
===================================================================
--- mgmt/cumin/python/cumin/__init__.py 2007-11-06 18:56:24 UTC (rev 1252)
+++ mgmt/cumin/python/cumin/__init__.py 2007-11-06 18:58:52 UTC (rev 1253)
@@ -32,44 +32,12 @@
self.add_page(CssPage(self, "cumin.css"))
self.add_page(ResourcePage(self, "resource"))
- self.add_page(CountPage(self, "count"))
- self.add_page(RandomIntegerPage(self, "randint"))
self.add_page(DevelPage(self, "devel.html"))
self.add_page(QueueXmlPage(self, "queue.xml"))
self.add_page(QueueChartPage(self, "queue.png"))
self.add_page(ExchangeChartPage(self, "exchange.png"))
self.add_page(ClientChartPage(self, "client.png"))
-class RandomIntegerPage(Page):
- def __init__(self, app, name):
- super(RandomIntegerPage, self).__init__(app, name)
-
- self.min = IntegerParameter(app, "min");
- self.add_parameter(self.min);
-
- self.max = IntegerParameter(app, "max");
- self.add_parameter(self.max);
-
- def get_content_type(self, session):
- return Page.xml_content_type
-
- def do_render(self, session, object):
- int = randint(self.min.get(session), self.max.get(session))
- return "%s<integer>%i</integer>" %
(Page.xml_1_0_declaration, int)
-
-class CountPage(Page):
- def __init__(self, app, name):
- super(CountPage, self).__init__(app, name)
-
- self.count = 0
-
- def get_content_type(self, session):
- return Page.xml_content_type
-
- def do_render(self, session, object):
- self.count += 1
- return "<count>%i</count>" % self.count
-
class CuminServer(WebServer):
def __init__(self, port=9090):
model = CuminModel()
Modified: mgmt/notes/justin-todo.txt
===================================================================
--- mgmt/notes/justin-todo.txt 2007-11-06 18:56:24 UTC (rev 1252)
+++ mgmt/notes/justin-todo.txt 2007-11-06 18:58:52 UTC (rev 1253)
@@ -15,8 +15,6 @@
in the render_title calls. Perhaps introduce a get_title to solve
this.
- * Remove the extra pages we no longer use
-
Deferred
* Make the status lights also be links to an appropriate view
Show replies by date