[PEAK] Pickling Trellis objects?

Justin Ryan justizin at gmail.com
Sat Aug 25 13:02:10 EDT 2007


On 8/25/07, Phillip J. Eby <pje at telecommunity.com> wrote:
> At 07:34 PM 8/24/2007 -0700, Justin Ryan wrote:
> >Would it be crazy to try and adapt a persistent zope3 component to a
> >Component which can be managed by the trellis at runtime, but
> >serialized in simpler form?
>
> You mean adapt, in the sense of declaring a component class as an
> adapter for a persistent object?  Sure, you could do that.
>

Yes.

> But you'll need to watch out for the fact that trellis components
> aren't lazy in terms of object references, so if your ZODB component
> refers to other ZODB objects that you're adapting to
> trellis.Components, you could end up loading an entire object graph.
>
> You'll probably need at least the lazy-loading support of TrellisDB
> to do something like that.
>

Sounds like an interesting challenge. :)

-- 
Justin Alan Ryan
Advocate, VonGogo Foundation
http://www.bitmonk.net/
* : +1-415-226-1199

"Technology is a way of organizing the universe so that man doesn't
have to experience it"
- Max Frisch

Ideas expressed in personal e-mail messages are not necessarily
representative of any organization(s) I represent.



More information about the PEAK mailing list