Ok so I dug deeper into this and found that our pickles don't have the
class they just have the oid. Now comes the part where you will most
likely say that I'm lame... :)
We are using an old version of zope 2.8.8 and our ZODB objects are
Persistent (from Globals) not persistent. At the to
Got it I will look for a different strategy.
-EAD
On Jul 7, 2008, at 9:38 AM, Jim Fulton wrote:
On Jul 2, 2008, at 8:07 AM, Erik Dahl wrote:
I have a situation where I want to mutate the class of an instance
This is not a use case supported by ZODB.
Jim
--
Jim Fulton
Zope Corporation
On Jul 2, 2008, at 8:07 AM, Erik Dahl wrote:
I have a situation where I want to mutate the class of an instance
This is not a use case supported by ZODB.
Jim
--
Jim Fulton
Zope Corporation
___
For more information about ZODB, see the ZODB Wiki:
On Jul 3, 2008, at 12:09 PM, Marius Gedminas wrote:
...
The class is also stored in every reference to that object.
Well that something new to me... how come? Seems like they only need
the oid.
My guess is that's for performance reasons.
Yup, as you described.
Jim
--
Jim Fulton
Zope Cor
(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
On Wed, Jul 02, 2008 at 08:07:56AM -0400, Erik Dahl wrote:
> I have a situation where I want to mutate the class of an instance like
> this:
>
> inst.__class__ = NewClass
Is inst a persistent object? Then your only chance to get this to work
is to find *all* objects that reference inst and mark
Erik Dahl wrote:
I have a situation where I want to mutate the class of an instance
like this:
inst.__class__ = NewClass
I'm in zeo land. When I do this in one client things work fine. But
of course the other clients who have already loaded the instance still
hold the old class. Restar
--On 2. Juli 2008 08:07:56 -0400 Erik Dahl <[EMAIL PROTECTED]> wrote:
I have a situation where I want to mutate the class of an instance like
this:
inst.__class__ = NewClass
I'm in zeo land. When I do this in one client things work fine. But of
course the other clients who have already loa
> Any chance I can get zeo to tell the other clients about the new class?
Speaking purely as an idiot .. can't you tell ZEO the normal way? I.e.
just make it think the instance changed. Edit it, or set _p_changed on
it.
--
jean . .. //\\\oo///\\
_
I have a situation where I want to mutate the class of an instance
like this:
inst.__class__ = NewClass
I'm in zeo land. When I do this in one client things work fine. But
of course the other clients who have already loaded the instance still
hold the old class. Restarting them gets the
10 matches
Mail list logo