[Grok-dev] model not getting persisted
Tim Terlegård
tim at se.linux.org
Thu Mar 22 18:24:46 EDT 2007
If I have a model like this the x variable won't survive a server
restart.
class MyModel(grok.Model):
x = PersistentList()
After I restart server the list is empty again. If the model is like
this it's ok.
class MyModel(grok.Model):
def __init__(self):
self.x = PersistentList()
I think I can do both ways in pure zope3, but when doing the former way
in grok it won't be persistent. How come?
Tim
More information about the Grok-dev
mailing list