[rhmessaging-commits] rhmessaging commits: r3361 - mgmt/trunk/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed May 6 15:06:45 EDT 2009


Author: eallen
Date: 2009-05-06 15:06:45 -0400 (Wed, 06 May 2009)
New Revision: 3361

Modified:
   mgmt/trunk/cumin/python/cumin/model.py
Log:
Removed GetLimitCount action on Negotiator since the limit count is now a deferred rendered widget 

Modified: mgmt/trunk/cumin/python/cumin/model.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/model.py	2009-05-06 19:04:57 UTC (rev 3360)
+++ mgmt/trunk/cumin/python/cumin/model.py	2009-05-06 19:06:45 UTC (rev 3361)
@@ -2871,9 +2871,6 @@
         action = self.GetLimits(self, "GetLimits")
         action.navigable = False
 
-        action = self.GetLimitCount(self, "GetLimitCount")
-        action.navigable = False
-
         action = GetStartedAction(self, "GetStarted")
         action.navigable = False
 
@@ -2904,20 +2901,6 @@
         def get_title(self, session):
             return "Stop"
 
-    class GetLimitCount(CuminAction):
-        def get_xml_response(self, session, negotiator, *args):
-            action = self.model.negotiator.GetLimits
-            limits = action.do_invoke(negotiator)
-            error = "False"
-            if "timeout" in limits:
-                val = 0
-                error = "True"
-            else:
-                val = len(limits)
-            err = "<error value=\"%s\" />" % error
-            count = "<count value=\"%i\" />" % val
-            return "%s%s" % (count, err)
-
     class GetLimits(CuminAction):
         def do_invoke(self, negotiator):
             self.lim = dict()




More information about the rhmessaging-commits mailing list