Author: eallen
Date: 2008-11-06 17:32:22 -0500 (Thu, 06 Nov 2008)
New Revision: 2765
Modified:
mgmt/trunk/cumin/python/cumin/queue.py
Log:
Add process_cancel so QueueBindingAdd form returns properly after switching between Active
and All
Modified: mgmt/trunk/cumin/python/cumin/queue.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/queue.py 2008-11-06 22:27:43 UTC (rev 2764)
+++ mgmt/trunk/cumin/python/cumin/queue.py 2008-11-06 22:32:22 UTC (rev 2765)
@@ -710,6 +710,11 @@
return "<ul class=\"errors\" style=\"margin:0;
float:left;\"><li>%s</li></ul>" % \
"</li><li>".join(errors["no_exchanges"])
+ def process_cancel(self, session):
+ branch = session.branch()
+ self.frame.show_view(branch)
+ self.page.set_redirect_url(session, branch.marshal())
+
def process_submit(self, session):
queue = self.frame.get_object(session)
(errors, form_binding_info) = self.bindings.get_binding_errors(session,
queue.name)
Show replies by date