23 Jan
2006
23 Jan
'06
9:30 a.m.
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