Bernd Dorn wrote:
> you reassign the attribute here, so the list is never persistent
I thought about that, it's python 101 after all
> in Person.__init__ do: self.gadgets=PersistentList()
> and then in growup:
> person.gadgets.extend([ Gadget(toy) for toy in ])

Yes, indeed, what I tried was

person.gadgets = PersistentList()
for toy in

Anyway, I am reassured by the fact that it should "just work", so I'm
trying again instead of refactoring. Must be something stoopid I overlooked.


Zope3-users mailing list

Reply via email to