[Zope-Checkins] CVS: Zope/lib/python/Products/TemporaryFolder - TemporaryStorage.py:1.9
Chris McDonough
chrism@zope.com
Sun, 30 Jun 2002 14:23:16 -0400
Update of /cvs-repository/Zope/lib/python/Products/TemporaryFolder
In directory cvs.zope.org:/tmp/cvs-serv17718
Modified Files:
TemporaryStorage.py
Log Message:
(Reluctantly) allow versions to be used against a TemporaryStorage,
although TemporaryStorage does not actually support versions.
=== Zope/lib/python/Products/TemporaryFolder/TemporaryStorage.py 1.8 => 1.9 ===
__version__ ='$Revision$'[11:-2]
-from zLOG import LOG
+from zLOG import LOG, BLATHER
from ZODB.referencesf import referencesf
from ZODB import POSException
from ZODB.BaseStorage import BaseStorage
@@ -117,8 +117,11 @@
if transaction is not self._transaction:
raise POSException.StorageTransactionError(self, transaction)
if version:
- raise POSException.Unsupported, (
- "TemporaryStorage is incompatible with versions"
+ # we allow a version to be in use although we don't
+ # support versions in the storage.
+ LOG('TemporaryStorage', BLATHER,
+ ('versions in use with TemporaryStorage although Temporary'
+ 'Storage doesnt support versions'),
)
self._lock_acquire()
try: