[Zodb-checkins] CVS: Packages/ZEO - ClientStorage.py:1.28

jeremy@digicool.com jeremy@digicool.com
Fri, 27 Apr 2001 13:30:01 -0400 (EDT)


Update of /cvs-repository/Packages/ZEO
In directory korak:/tmp/cvs-serv29870

Modified Files:
	ClientStorage.py 
Log Message:
Add default arguments to undoInfo(), since the storage API (the tests
    at least) seems to imply that they are optional.
Fix typo in long attribute name.




--- Updated File ClientStorage.py in package Packages/ZEO --
--- ClientStorage.py	2001/04/02 21:34:01	1.27
+++ ClientStorage.py	2001/04/27 17:29:59	1.28
@@ -120,7 +120,7 @@
     def __init__(self, connection, storage='1', cache_size=20000000,
                  name='', client='', debug=0, var=None,
                  min_disconnect_poll=5, max_disconnect_poll=300,
-                 wait_for_server_on_starup=1):
+                 wait_for_server_on_startup=1):
 
         # Decide whether to use non-temporary files
         client=client or os.environ.get('ZEO_CLIENT','')
@@ -128,7 +128,7 @@
         self._connection=connection
         self._storage=storage
         self._debug=debug
-        self._wait_for_server_on_starup=wait_for_server_on_starup
+        self._wait_for_server_on_startup=wait_for_server_on_startup
 
         self._info={'length': 0, 'size': 0, 'name': 'ZEO Client',
                     'supportsUndo':0, 'supportsVersions': 0,
@@ -198,7 +198,7 @@
 
     def _startup(self):
 
-        if not self._call.connect(not self._wait_for_server_on_starup):
+        if not self._call.connect(not self._wait_for_server_on_startup):
 
             # If we can't connect right away, go ahead and open the cache
             # and start a separate thread to try and reconnect.
@@ -542,7 +542,7 @@
         finally: self._lock_release()
 
 
-    def undoInfo(self, first, last, specification):
+    def undoInfo(self, first=0, last=-20, specification=None):
         self._lock_acquire()
         try:
             return self._call('undoInfo', first, last, specification)