[ZODB-Dev] database conflict fail
Vincent Pelletier
plr.vincent at gmail.com
Thu Mar 22 21:04:31 UTC 2012
Le jeudi 22 mars 2012 21:13:34, Claudiu Saftoiu a écrit :
> In [14]: root._p_jar[0x139c35]
Actually, you want to write:
root._p_jar['\x00\x00\x00\x00\x00\x13\x9c\x35']
ie, OIDs are 8-byte binary strings.
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (85, 0))
Looks like internal ipython error. Personally, I stay away of it, despite its
nice colors. It crashes and burns too easily.
> /home/tsa/env/lib/python2.6/site-packages/ZODB/fsIndex.pyc in get(self,
> key, default)
> 123
> 124 def get(self, key, default=None):
> --> 125 tree = self._data.get(key[:6], default)
> 126 if tree is default:
> 127 return default
>
> TypeError: 'int' object is unsubscriptable
This is the actual error, which will go away if you provide a string.
--
Vincent Pelletier
More information about the ZODB-Dev
mailing list