[Zope] Class instances changing address?
Chris Withers
chris at simplistix.co.uk
Mon Jan 23 04:30:04 EST 2006
Gabriel Genellina wrote:
> - Never store a reference to a persistent object inside another
> persistent object; use its id or path to retrieve it when needed.
I suspect storing the aq_base of an object will mitigate any problems
you have here...
> - Never store a reference to a persistent object inside a non-persistent
> object.
I don't think this is a useful warning.
> - If a persistent object "owns" some other persistent objects, make the
> first an ObjectManager.
...and this is bordering on rubbish ;-)
> - Let Zope manage transactions, and avoid bare try/excepts
Aha, now this is a good one :-)
cheers,
Chris
--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
More information about the Zope
mailing list