11 Apr
2002
11 Apr
'02
5:06 p.m.
On Thu, Apr 11, 2002 at 10:33:45AM +0200, Max M wrote:
The correct way to ensure that there are no dangling relations naturally is to create a method in any product being related to like (from the top of my head)::
def manage_beforeDelete(self): self.relations.delete(self)
Then things happens cleanly.
But that means that every class you want to relate has to know about relations. I thought the relations were completely external to the related objects? Seems like you're breaking encapsulation. --PW