Author: justi9
Date: 2008-01-15 17:10:58 -0500 (Tue, 15 Jan 2008)
New Revision: 1567
Modified:
mgmt/cumin/python/cumin/broker.py
mgmt/cumin/python/cumin/client.py
mgmt/cumin/python/cumin/queue.py
Log:
Should have commited this for Monday's freeze. Set current frame on
bulk actions.
Modified: mgmt/cumin/python/cumin/broker.py
===================================================================
--- mgmt/cumin/python/cumin/broker.py 2008-01-14 18:32:28 UTC (rev 1566)
+++ mgmt/cumin/python/cumin/broker.py 2008-01-15 22:10:58 UTC (rev 1567)
@@ -728,7 +728,9 @@
def process_return(self, session, id):
branch = session.branch()
- self.frame().show_view(branch)
+ frame = self.frame()
+ frame.show_view(branch)
+ self.page().set_current_frame(branch, frame)
self.page().set_redirect_url(session, branch.marshal())
def process_item(self, session, id):
Modified: mgmt/cumin/python/cumin/client.py
===================================================================
--- mgmt/cumin/python/cumin/client.py 2008-01-14 18:32:28 UTC (rev 1566)
+++ mgmt/cumin/python/cumin/client.py 2008-01-15 22:10:58 UTC (rev 1567)
@@ -215,7 +215,9 @@
def process_return(self, session, object):
branch = session.branch()
- self.frame().show_view(branch)
+ frame = self.frame()
+ frame.show_view(branch)
+ self.page().set_current_frame(branch, frame)
self.page().set_redirect_url(session, branch.marshal())
def process_item(self, session, id):
@@ -326,7 +328,9 @@
def process_return(self, session, object):
branch = session.branch()
- self.frame().show_view(branch).show_sessions(branch)
+ frame = self.frame()
+ frame.show_view(branch).show_sessions(branch)
+ self.page().set_current_frame(branch, frame)
self.page().set_redirect_url(session, branch.marshal())
def process_item(self, session, id):
@@ -345,7 +349,9 @@
def process_return(self, session, object):
branch = session.branch()
- self.frame().show_view(branch).show_sessions(branch)
+ frame = self.frame()
+ frame.show_view(branch).show_sessions(branch)
+ self.page().set_current_frame(branch, frame)
self.page().set_redirect_url(session, branch.marshal())
def process_item(self, session, id):
Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py 2008-01-14 18:32:28 UTC (rev 1566)
+++ mgmt/cumin/python/cumin/queue.py 2008-01-15 22:10:58 UTC (rev 1567)
@@ -442,8 +442,9 @@
return "No, Cancel"
def doit(error, args):
- print error, args
- print "did it!"
+ pass
+ #print error, args
+ #print "did it!"
class QueuePurge(CuminConfirmForm):
def get_title(self, session, queue):
@@ -474,7 +475,9 @@
def process_return(self, session, object):
branch = session.branch()
- self.frame().show_view(branch)
+ frame = self.frame()
+ frame.show_view(branch)
+ self.page().set_current_frame(branch, frame)
self.page().set_redirect_url(session, branch.marshal())
def process_item(self, session, id):