Author: justi9
Date: 2008-01-04 11:44:14 -0500 (Fri, 04 Jan 2008)
New Revision: 1535
Modified:
mgmt/cumin/python/cumin/model.py
mgmt/cumin/python/cumin/stat.py
mgmt/cumin/python/cumin/widgets.py
mgmt/notes/justin-todo.txt
Log:
Gets rid of a duplicate method name.
Modified: mgmt/cumin/python/cumin/model.py
===================================================================
--- mgmt/cumin/python/cumin/model.py 2008-01-04 16:38:31 UTC (rev 1534)
+++ mgmt/cumin/python/cumin/model.py 2008-01-04 16:44:14 UTC (rev 1535)
@@ -21,10 +21,6 @@
def add_class(self, cls):
self.classes.append(cls)
- # XXX get rid of this
- def get_class(self, mint_object):
- return self.get_class_by_object(mint_object)
-
def get_class_by_object(self, mint_object):
for cls in self.classes:
if cls.mint_class is mint_object.__class__:
Modified: mgmt/cumin/python/cumin/stat.py
===================================================================
--- mgmt/cumin/python/cumin/stat.py 2008-01-04 16:38:31 UTC (rev 1534)
+++ mgmt/cumin/python/cumin/stat.py 2008-01-04 16:44:14 UTC (rev 1535)
@@ -24,7 +24,7 @@
def do_get_items(self, session, object):
stats = list()
- cls = self.app.model.get_class(object)
+ cls = self.app.model.get_class_by_object(object)
for stat in cls.stats:
if self.category in stat.categories:
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2008-01-04 16:38:31 UTC (rev 1534)
+++ mgmt/cumin/python/cumin/widgets.py 2008-01-04 16:44:14 UTC (rev 1535)
@@ -184,7 +184,7 @@
writer.write("<objects>");
for object in objects:
- cls = self.app.model.get_class(object)
+ cls = self.app.model.get_class_by_object(object)
cls.write_xml(object, writer)
writer.write("</objects>");
Modified: mgmt/notes/justin-todo.txt
===================================================================
--- mgmt/notes/justin-todo.txt 2008-01-04 16:38:31 UTC (rev 1534)
+++ mgmt/notes/justin-todo.txt 2008-01-04 16:44:14 UTC (rev 1535)
@@ -36,6 +36,8 @@
Deferred
+ * Only perform js updates if there's new data
+
* Avoid dirtying js namespace with updateFoo methods
* Add a widget for the html client side of chart images
Show replies by date