Author: justi9
Date: 2008-06-04 14:18:39 -0400 (Wed, 04 Jun 2008)
New Revision: 2128
Modified:
mgmt/cumin/python/cumin/client.py
mgmt/cumin/python/cumin/model.py
Log:
Fix connection close; renames
Modified: mgmt/cumin/python/cumin/client.py
===================================================================
--- mgmt/cumin/python/cumin/client.py 2008-06-04 18:14:32 UTC (rev 2127)
+++ mgmt/cumin/python/cumin/client.py 2008-06-04 18:18:39 UTC (rev 2128)
@@ -173,7 +173,7 @@
self.page.set_redirect_url(session, branch.marshal())
def process_item(self, session, id):
- conn = Connection.get(id)
+ conn = ClientConnection.get(id)
action = self.app.model.connection.close
action.invoke(conn)
@@ -181,7 +181,7 @@
return "Close Connections"
def render_item_content(self, session, id):
- return "Close Connection %s" % Client.get(id).address
+ return "Close Connection %s" % ClientConnection.get(id).address
class ConnectionStatus(CuminStatus):
def render_frames_from(self, session, conn):
Modified: mgmt/cumin/python/cumin/model.py
===================================================================
--- mgmt/cumin/python/cumin/model.py 2008-06-04 18:14:32 UTC (rev 2127)
+++ mgmt/cumin/python/cumin/model.py 2008-06-04 18:18:39 UTC (rev 2128)
@@ -926,7 +926,7 @@
return "Close"
def do_invoke(self, sess, args, completion):
- reg = sess.conn.vhost.broker.registration
+ reg = sess.clientConnection.vhost.broker.registration
conn = self.cumin_model.data.getConnectionByRegistration(reg)
if sess.name == conn.getSessionId():
Show replies by date