[Zodb-checkins] CVS: Packages/ZODB - config.py:1.13.4.1.38.2

Jim Fulton jim at zope.com
Fri Jan 20 13:29:28 EST 2006


Update of /cvs-repository/Packages/ZODB
In directory cvs.zope.org:/tmp/cvs-serv6069

Modified Files:
      Tag: jim-test-storage
	config.py 
Log Message:
Make sure providing as-of implies read-only.


=== Packages/ZODB/config.py 1.13.4.1.38.1 => 1.13.4.1.38.2 ===
--- Packages/ZODB/config.py:1.13.4.1.38.1	Thu Jan 19 20:15:09 2006
+++ Packages/ZODB/config.py	Fri Jan 20 13:29:27 2006
@@ -133,12 +133,14 @@
 
             y, m, d = map(int, d.split('-'))
             as_of = ZODB.TimeStamp.TimeStamp(y, m, d, *t.split(':'))
+            read_only = True
         else:
             as_of = None
+            read_only = self.config.read_only
             
         return FileStorage(self.config.path,
                            create=self.config.create,
-                           read_only=self.config.read_only,
+                           read_only=read_only,
                            quota=self.config.quota,
                            stop=as_of,
                            )



More information about the Zodb-checkins mailing list