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

Jeremy Hylton jeremy@zope.com
Fri, 4 Oct 2002 15:50:42 -0400


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

Modified Files:
      Tag: ZODB3-3_1-branch
	zeoup.py 
Log Message:
Backport from trunk: Connect read-only if --nowrite is given.







=== ZODB3/Tools/zeoup.py 1.6 => 1.6.2.1 ===
--- ZODB3/Tools/zeoup.py:1.6	Mon Aug 26 12:10:43 2002
+++ ZODB3/Tools/zeoup.py	Fri Oct  4 15:50:42 2002
@@ -36,7 +36,8 @@
 
 def check_server(addr, storage, write):
     if ZEO_VERSION == 2:
-        cs = ClientStorage(addr, storage=storage, debug=1, wait=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)