[Zope-Checkins] CVS: Zope/lib/python/Products/TemporaryFolder - TemporaryStorage.py:1.6.2.1 __init__.py:1.4.2.1
Chris McDonough
chrism@zope.com
Tue, 8 Jan 2002 10:17:27 -0500
Update of /cvs-repository/Zope/lib/python/Products/TemporaryFolder
In directory cvs.zope.org:/tmp/cvs-serv23876
Modified Files:
Tag: Zope-2_5-branch
TemporaryStorage.py __init__.py
Log Message:
Fixed bug in TemporaryStorage loadSerial method which could result in unpack tuple of wrong size errors.
=== Zope/lib/python/Products/TemporaryFolder/TemporaryStorage.py 1.6 => 1.6.2.1 ===
self._lock_acquire()
try:
- data, t = self._conflict_cache.get((oid, serial), marker)
+ data = self._conflict_cache.get((oid, serial), marker)
if data is marker:
raise POSException.ConflictError, (oid, serial)
- return data
+ else:
+ return data[0] # data here is actually (data, t)
finally:
self._lock_release()
=== Zope/lib/python/Products/TemporaryFolder/__init__.py 1.4 => 1.4.2.1 ===
import ZODB # for testrunner to be happy
-import TemporaryFolder
def initialize(context):
+ import TemporaryFolder
context.registerClass(
TemporaryFolder.MountedTemporaryFolder,
permission=TemporaryFolder.ADD_TEMPORARY_FOLDER_PERM,