[Zope-dev] Corrupt Data.fs: Is there a way of fixing transaction ids?

Florent Guillaume fg@nuxeo.com
Sat, 3 Aug 2002 16:15:38 +0000 (UTC)


Joachim Werner <joe@iuveno.de> wrote:
> Problem: 109963117 object serialno 0x034573c4b6a2cb6e does not match
> transaction id 0x034573c55c8c0dbb
[...]
> I'd also like to identify the corrupt entries (i.e. find out the Zope object
> they belong to) to be able to eliminate them.

Here's a guess (I don't know if it'll work):
Convert the hexadecimal id to octal, and do:
    import Zope
    app = Zope.app()
    ob = app._p_jar['\000\000\000\000\000(\347\026'] # here the octal string
    print ob.id
    print ob.__class__

HTH,

Florent
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com