Commit 565f9a71 authored by Guido van Rossum's avatar Guido van Rossum

Only specify read_only if --nowrite is given.

parent 556a793f
......@@ -36,7 +36,8 @@ ZEO_VERSION = 2
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment