[ZODB-Dev] example for the following?

2009-01-22 Thread 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 set _p_changed = 1) i get the error: "TypeError: can't pick

Re: [ZODB-Dev] example for the following?

2009-01-22 Thread Nitro
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

Re: [ZODB-Dev] example for the following?

2009-01-22 Thread Andreas Jung
-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

Re: [ZODB-Dev] Relstorage pack problems

2009-01-22 Thread Santi Camps
> > 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

Re: [ZODB-Dev] example for the following?

2009-01-22 Thread Adam GROSZER
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

Re: [ZODB-Dev] Relstorage pack problems

2009-01-22 Thread Shane Hathaway
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

Re: [ZODB-Dev] Relstorage pack problems

2009-01-22 Thread Shane Hathaway
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

Re: [ZODB-Dev] Relstorage pack problems

2009-01-22 Thread Shane Hathaway
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

Re: [ZODB-Dev] How to turn off 'GC' when packing on ZODB3.6.2

2009-01-22 Thread Shane Hathaway
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 __