[Grok-dev] model not getting persisted

Tim Terlegård tim at se.linux.org
Fri Mar 23 03:49:00 EDT 2007

On Thu, Mar 22, 2007 at 07:41:13PM -0300, Fernando Correa Neto wrote:
> Hi,
> On 3/22/07, Tim Terlegård <tim at se.linux.org> wrote:
> >If I have a model like this the x variable won't survive a server
> >restart.
> >
> >class MyModel(grok.Model):
> >    x = PersistentList()
> >
> I don't think it works even in a plain zope3.

I haven't tried this particular example, I just remember I've seen code
similar to this.

Check for instance how lastName etc are initialized in the Contact class
here: http://dc.ubuntu-us.org/bazaar/zope3class/html/lesson03/index.html

and how fullname is initialized here:

I'm obviously missing something here as I'm confused, please enlighten
me  :)


More information about the Grok-dev mailing list