[Zope-Checkins] CVS: Packages/ZODB - BaseStorage.py:1.34.4.6.2.1

Jim Fulton jim at zope.com
Fri Jan 20 17:15:18 EST 2006


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

Modified Files:
      Tag: jim-test-storage
	BaseStorage.py 
Log Message:
Should be OK to ask for new_oid in read-only mode.  Demo storage wants
it.  Maybe need a max_oid.


=== Packages/ZODB/BaseStorage.py 1.34.4.6 => 1.34.4.6.2.1 ===
--- Packages/ZODB/BaseStorage.py:1.34.4.6	Wed Oct  5 15:31:01 2005
+++ Packages/ZODB/BaseStorage.py	Fri Jan 20 17:15:18 2006
@@ -94,8 +94,6 @@
         return ''
 
     def new_oid(self):
-        if self._is_read_only:
-            raise POSException.ReadOnlyError()
         self._lock_acquire()
         try:
             last = self._oid



More information about the Zope-Checkins mailing list