[Zodb-checkins] CVS: ZODB3/Tools - zeoup.py:1.8

Guido van Rossum guido@python.org
Fri, 4 Oct 2002 14:58:39 -0400


Update of /cvs-repository/ZODB3/Tools
In directory cvs.zope.org:/tmp/cvs-serv26503

Modified Files:
	zeoup.py 
Log Message:
Only specify read_only if --nowrite is given.


=== ZODB3/Tools/zeoup.py 1.7 => 1.8 ===
--- ZODB3/Tools/zeoup.py:1.7	Fri Oct  4 14:54:29 2002
+++ ZODB3/Tools/zeoup.py	Fri Oct  4 14:58:38 2002
@@ -36,7 +36,8 @@
 
 def check_server(addr, storage, write):
     if ZEO_VERSION == 2:
-        cs = ClientStorage(addr, storage=storage, wait=1, read_only=1)
+        cs = ClientStorage(addr, storage=storage, wait=1,
+                           read_only=(not write))
     else:
         cs = ClientStorage(addr, storage=storage, debug=1,
                            wait_for_server_on_startup=1)