Hi,
I'm using ZODB in a desktop app (i.e. not using zope).
I have class A which contains a list of instances for class B.
I can persist class A when the list of class B is empty. When i add
an instance of class B to the list (and set _p_changed = 1) i get the
error:
"TypeError: can't pick
Am 22.01.2009, 17:46 Uhr, schrieb Jamie McQuay :
> Hi,
>
> I'm using ZODB in a desktop app (i.e. not using zope).
>
> I have class A which contains a list of instances for class B.
>
> I can persist class A when the list of class B is empty. When i add
> an instance of class B to the list (and se
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 22.01.2009 17:46 Uhr, Jamie McQuay wrote:
> Hi,
>
> I'm using ZODB in a desktop app (i.e. not using zope).
>
> I have class A which contains a list of instances for class B.
>
> I can persist class A when the list of class B is empty. When i add
>
> Interesting. RelStorage is already set up to do something like that.
> It splits packing into two phases. In the first phase, it makes a
> complete list of every row for the second phase to delete. The second
> phase could be delayed as long as we want. Between the two phases, if
> any data
Hello Jamie,
I would say to persist that object either you rewrite it in python,
(and use the persistent module)
or fiddle around the __getstate__ and __setstate__ methods.
Though no idea how you can get those working with your swig'ed
objects.
See: http://docs.python.org/library/pickle.html
Thu
Santi Camps wrote:
> I already know what happens: either object_ref and object_refs_added
> tables are completely empty in my database. I can't understand why,
Those tables only get populated by packing. If you're saying that they
are still empty even after a successful pre_pack run with gc e
Santi,
I hope you don't mind me discussing your database in public. I'm not
going to talk about anything that looks like it could be private. Other
RelStorage users might benefit from the analysis.
Looking at your database, I see that something bad happened just before
transaction 2504999134
Laurence Rowe wrote:
> Shane Hathaway wrote:
>> I should note that this KeyError occurs while trying to report on a
>> KeyError. I need to fix that. Fortunately, the same error pops out anyway.
>
> There's a fix for this in the Jarn branch. Note that to collect more
> interesting data it rolls
eastxing wrote:
> For choice 3, 'RelStorage' provide a 'ZODBConverter', but I do not to
> know if it can used with ZODB3.6.2?
I think RelStorage could support ZODB 3.6 without much effort, but I
haven't tested it. I'd go with Jim's suggestion of using a new ZEO server.
Shane
__