[ZODB-Dev] Problems with ZODB3-3.9.0_dev_r77011

Tobias Rodäbel tobias.rodaebel at mac.com
Thu Jul 19 07:11:49 EDT 2007


Hi,

zope.app.keyreference-3.5.0_dev_r77018-py2.4.egg requires  
ZODB3>=3.9.0-dev-r77011

But there might be a caching problem within ZODB3-3.9.0 dev r77011,  
my debug session tells:

 > /development/Zope3/MyProject/eggs/ZODB3-3.9.0_dev_r77011-py2.4- 
macosx-10.4-ppc.egg/ZODB/Connection.py(644)_store_objects()
-> raise
(Pdb) obj
<zope.app.file.image.Image object at 0x3faadb0>
(Pdb) oid
'\x00\x00\x00\x00\x00\x00\x00\xc6'
(Pdb) self._cache[oid]
*** KeyError: '\x00\x00\x00\x00\x00\x00\x00\xc6'
(Pdb) self._cache[oid] = obj
*** TypeError: Cache values must be persistent objects.

But zope.app.file.image.Image should be persistent.

(Pdb) dir (obj)
['__annotations__', '__class__', '__delattr__', '__dict__',  
'__doc__', '__getattribute__', '__getstate__', '__hash__',  
'__implemented__', '__init__', '__module__', '__new__',  
'__providedBy__', '__provides__', '__reduce__', '__reduce_ex__',  
'__repr__', '__setattr__', '__setstate__', '__slotnames__',  
'__str__', '__weakref__', '_data', '_getData', '_height',  
'_p_activate', '_p_changed', '_p_deactivate', '_p_delattr',  
'_p_getattr', '_p_invalidate', '_p_jar', '_p_mtime', '_p_oid',  
'_p_serial', '_p_setattr', '_p_state', '_setData', '_size', '_width',  
'contentType', 'data', 'getImageSize', 'getSize']

Looking forward to some hints or help,
Tobias


More information about the ZODB-Dev mailing list