[IndexedCatalog] Attributes and Options with ZODB4
Joshua Ritter
joshua at actionrpg.com
Fri Jan 31 08:54:48 BRDT 2003
Nice work guys... I'll be testing with this in the coming week(s)...
For now, here is the only thing I ran into... again with _p_changed in
IndexedObject.__setattr__:
def __setattr__(self, name, value):
catalog = self.get_catalog()
if not catalog:
oldvalue = getattr(self, name, None)
self.__dict__['_v_postponed'].append((name, value, oldvalue))
else:
oldvalue = getattr(self, name, None)
self._ic_update(name, value, oldvalue)
#Comment Me Out!!!!
#self._p_changed = 1
Test 22 still gives this error, and it's not because of a stale db... I'm
not terribly excited about posting this to ZODB-Dev and adding noise... I am
pretty new to ZODB, if it really seems like a ZODB4 bug though .... :
Traceback (most recent call last):
File "test22.py", line 21, in ?
db = Database('test-storage.fs', catalogs={'a':a, 'b':b, 'c':c})
File "C:\Python22\Lib\site-packages\IndexedCatalog\Database.py", line 41, in
__init__
self._v_storage = FileStorage(unix)
File "C:\Python22\Lib\site-packages\zodb\storage\file.py", line 543, in
__init__
r = self._restore_index()
File "C:\Python22\Lib\site-packages\zodb\storage\file.py", line 645, in
_restore_index
tl = u64(self._file.read(8))
File "C:\Python22\Lib\site-packages\zodb\utils.py", line 26, in u64
return struct.unpack(">Q", v)[0]
struct.error: unpack str size does not match format
-J
------------------------------------
Joshua Ritter
ActionRPG Revolutionary
www.actionrpg.com
More information about the IndexedCatalog
mailing list