Author: justi9
Date: 2008-04-09 07:52:07 -0400 (Wed, 09 Apr 2008)
New Revision: 1878
Modified:
mgmt/cumin/python/cumin/model.py
Log:
Give the default exchange a special name
Modified: mgmt/cumin/python/cumin/model.py
===================================================================
--- mgmt/cumin/python/cumin/model.py 2008-04-09 11:46:06 UTC (rev 1877)
+++ mgmt/cumin/python/cumin/model.py 2008-04-09 11:52:07 UTC (rev 1878)
@@ -799,6 +799,14 @@
def get_icon_href(self, session):
return "resource?name=exchange-36.png"
+ def get_object_title(self, session, object):
+ name = self.get_object_name(object)
+
+ if name:
+ return super(CuminExchange, self).get_object_title(session, object)
+ else:
+ return "Default Exchange"
+
class CuminBinding(RemoteClass):
def __init__(self, model):
super(CuminBinding, self).__init__(model, "binding",
Show replies by date