[Zope3-checkins] CVS: ZODB4/ZODB - StorageTypes.py:1.4
Barry Warsaw
barry@wooz.org
Mon, 16 Dec 2002 18:08:48 -0500
Update of /cvs-repository/ZODB4/ZODB
In directory cvs.zope.org:/tmp/cvs-serv23090
Modified Files:
StorageTypes.py
Log Message:
convertBDBStorageArgs(): `read_only' is a boolean.
=== ZODB4/ZODB/StorageTypes.py 1.3 => 1.4 ===
--- ZODB4/ZODB/StorageTypes.py:1.3 Thu Dec 5 04:35:02 2002
+++ ZODB4/ZODB/StorageTypes.py Mon Dec 16 18:08:48 2002
@@ -101,7 +101,9 @@
continue
val = kw.get(name)
if val is not None:
- if name != 'logdir':
+ if name == 'read_only':
+ val = asBoolean(val)
+ elif name != 'logdir':
val = int(val)
setattr(config, name, val)
del kw[name]