Re: [ZODB-Dev] ZODB design. Size and saving records

2008-07-03 Thread Marius Gedminas
On Sun, Jun 22, 2008 at 08:54:14AM -0700, tsmiller wrote: > > ZODB guys, > > I have a bookstore application in which I use the ZODB in a simple way. The > database saves stores and records in the stores. > I open the database as follows where the databasePath argument points to my > bookserver.f

Re: [ZODB-Dev] Mutating class of an instance

2008-07-03 Thread Marius Gedminas
(Adding zodb-dev@zope.org back to Cc:) On Thu, Jul 03, 2008 at 09:14:27AM -0400, Erik Dahl wrote: > On Jul 2, 2008, at 10:55 AM, Marius Gedminas wrote: > > >> > >>inst.__class__ = NewClass > > > >Is inst a persistent object? Then your only chance to get this to > >work > >is to find *all* obje

Re: [ZODB-Dev] Locking

2008-07-03 Thread Marius Gedminas
On Wed, Jul 02, 2008 at 04:45:53PM -0400, Joseph Turian wrote: > How do I "lock" zodb objects? > > I want the following process: > > See if key is present in root. > [it's not] > Lock key write-access, so that no other client will try to write key. > Compute value for key. > Write value for key.