[Zodb-checkins] CVS: StandaloneZODB/ZEO - ClientStorage.py:1.26.4.32

Jeremy Hylton jeremy@zope.com
Tue, 8 Jan 2002 13:12:38 -0500


Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv2116

Modified Files:
      Tag: ZEO-ZRPC-Dev
	ClientStorage.py 
Log Message:
Move read_only to the end of the list of keyword args.


=== StandaloneZODB/ZEO/ClientStorage.py 1.26.4.31 => 1.26.4.32 ===
 class ClientStorage:
 
-    def __init__(self, addr, storage='1', read_only=0,
-                 cache_size=20000000, name='', client='', debug=0,
-                 var=None, min_disconnect_poll=5,
-                 max_disconnect_poll=300,
-                 wait_for_server_on_startup=1):
+    def __init__(self, addr, storage='1', cache_size=20000000,
+                 name='', client='', debug=0, var=None,
+                 min_disconnect_poll=5, max_disconnect_poll=300,
+                 wait_for_server_on_startup=1, read_only=0):
 
         self._server = disconnected_stub
         self._is_read_only = read_only
@@ -281,6 +280,9 @@
             return self._info['supportsTransactionalUndo']
         except KeyError:
             return 0
+
+    def isReadOnly(self):
+        return self._is_read_only
 
     def _check_trans(self, trans, exc=None):
         if self._transaction is not trans: