Author: justi9
Date: 2008-02-07 15:50:55 -0500 (Thu, 07 Feb 2008)
New Revision: 1660
Modified:
mgmt/cumin/python/cumin/queue.py
Log:
Make the single object queue purge use the generic actions framework.
Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py 2008-02-07 19:49:50 UTC (rev 1659)
+++ mgmt/cumin/python/cumin/queue.py 2008-02-07 20:50:55 UTC (rev 1660)
@@ -417,13 +417,11 @@
self.page().set_redirect_url(session, branch.marshal())
def process_submit(self, session, queue):
- try:
- queue.purge(self.app.model.data, queue.managedBroker, doit)
- except Exception, e:
- self.add_error(session, e)
- else:
- self.process_cancel(session, queue)
+ action = self.app.model.queue.purge
+ action.invoke(queue)
+ self.process_cancel(session, queue)
+
def render_submit_content(self, session, queue):
return "Yes, Purge Queue '%s'" % queue.name
Show replies by date