Author: justi9
Date: 2008-04-09 16:31:55 -0400 (Wed, 09 Apr 2008)
New Revision: 1898
Modified:
mgmt/cumin/python/cumin/broker.py
mgmt/cumin/python/cumin/model.py
mgmt/cumin/python/cumin/widgets.py
mgmt/cumin/python/wooly/widgets.strings
mgmt/notes/justin-todo.txt
Log:
Only display actions marked navigable.
Change property styling a little.
Modified: mgmt/cumin/python/cumin/broker.py
===================================================================
--- mgmt/cumin/python/cumin/broker.py 2008-04-09 19:40:49 UTC (rev 1897)
+++ mgmt/cumin/python/cumin/broker.py 2008-04-09 20:31:55 UTC (rev 1898)
@@ -349,13 +349,13 @@
def do_get_items(self, session, reg):
cls = self.app.model.get_class_by_object(reg)
acts = [(x.get_href(session, reg), x.get_title(session))
- for x in cls.actions]
+ for x in cls.actions if x.navigable]
if reg.broker:
cls = self.app.model.get_class_by_object(reg.broker)
acts.extend([(x.get_href(session, reg.broker),
x.get_title(session))
- for x in cls.actions])
+ for x in cls.actions if x.navigable])
return acts
Modified: mgmt/cumin/python/cumin/model.py
===================================================================
--- mgmt/cumin/python/cumin/model.py 2008-04-09 19:40:49 UTC (rev 1897)
+++ mgmt/cumin/python/cumin/model.py 2008-04-09 20:31:55 UTC (rev 1898)
@@ -111,7 +111,8 @@
self.name = name
self.title = None
self.summary = False
-
+ self.navigable = True
+
self.cumin_class.add_action(self)
def show(self, session, object):
@@ -394,6 +395,8 @@
def __init__(self, cls, name):
super(LocalClass.Add, self).__init__(cls, name)
+ self.navigable = False
+
def show(self, session, object):
frame = self.cumin_class.show_object(session, object)
return frame.show_add(session)
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2008-04-09 19:40:49 UTC (rev 1897)
+++ mgmt/cumin/python/cumin/widgets.py 2008-04-09 20:31:55 UTC (rev 1898)
@@ -258,7 +258,7 @@
def do_get_items(self, session, object):
cls = self.app.model.get_class_by_object(object)
return [(x.get_href(session, object), x.get_title(session))
- for x in cls.actions]
+ for x in cls.actions if x.navigable]
class CuminDetails(Widget):
def __init__(self, app, name):
@@ -304,7 +304,7 @@
def do_get_items(self, session, object):
cls = self.app.model.get_class_by_object(object)
return [(x.get_href(session, object), x.get_title(session))
- for x in cls.actions if x.summary]
+ for x in cls.actions if x.summary and x.navigable]
class StateSwitch(ItemSet):
def __init__(self, app, name):
Modified: mgmt/cumin/python/wooly/widgets.strings
===================================================================
--- mgmt/cumin/python/wooly/widgets.strings 2008-04-09 19:40:49 UTC (rev 1897)
+++ mgmt/cumin/python/wooly/widgets.strings 2008-04-09 20:31:55 UTC (rev 1898)
@@ -137,7 +137,8 @@
}
table.PropertySet th {
- color: #333;
+ color: #444;
+ font-weight: normal;
}
[PropertySet.html]
Modified: mgmt/notes/justin-todo.txt
===================================================================
--- mgmt/notes/justin-todo.txt 2008-04-09 19:40:49 UTC (rev 1897)
+++ mgmt/notes/justin-todo.txt 2008-04-09 20:31:55 UTC (rev 1898)
@@ -30,6 +30,8 @@
Deferred
+ * En dashes don't disappear on stat update
+
* Change the way CuminAction.invoke works
* Resolve design questions around view navigation
Show replies by date