[Checkins] SVN: z3c.zodbbrowser/sandbox/src/z3c/zodbbrowser/plugin_zeo.py - displaying ip and port on the clientstorage tab

Christian Theune ct at gocept.com
Thu Nov 30 02:17:15 EST 2006


Log message for revision 71335:
   - displaying ip and port on the clientstorage tab
  

Changed:
  U   z3c.zodbbrowser/sandbox/src/z3c/zodbbrowser/plugin_zeo.py

-=-
Modified: z3c.zodbbrowser/sandbox/src/z3c/zodbbrowser/plugin_zeo.py
===================================================================
--- z3c.zodbbrowser/sandbox/src/z3c/zodbbrowser/plugin_zeo.py	2006-11-30 00:02:17 UTC (rev 71334)
+++ z3c.zodbbrowser/sandbox/src/z3c/zodbbrowser/plugin_zeo.py	2006-11-30 07:17:13 UTC (rev 71335)
@@ -46,6 +46,9 @@
     connection = None
     root = None
 
+    ip = None
+    port = None
+
     def open_direct(self, address, port):
         """Open ZODB.
 
@@ -66,9 +69,9 @@
         try:
             result = dlg.ShowModal()
             if result == 'ok':
-                ip = dlg.ip.GetValue().encode('ascii')
-                port = int(dlg.port.GetValue())
-                return self.open_direct(ip, port)
+                self.ip = dlg.ip.GetValue().encode('ascii')
+                self.port = int(dlg.port.GetValue())
+                return self.open_direct(self.ip, self.port)
         finally:
             dlg.Destroy()
         return False
@@ -94,7 +97,7 @@
         return self.root
 
     def getTitle(self):
-        return "ClientStorage at "
+        return "ClientStorage at %s:%s" % (self.ip, self.port)
 
 
 def register(registry):



More information about the Checkins mailing list