Bugs item #1493586, was opened at 2006-05-23 17:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1493586&group_id=74338
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Oleg Broytmann (phd)
Assigned to: Nobody/Anonymous (nobody)
Summary: destroySelf() must remove the object from related joins
Initial Comment:
.destroySelf() must remove the object being destroyed
from all related joins. Something like this:
class Service(Base):
groups = RelatedJoin("ServiceGroup")
def destroySelf(self):
for group in self.groups:
self.removeServiceGroup(group)
super(Service, self).destroySelf()
class ServiceGroup(Base):
services = RelatedJoin("Service")
def destroySelf(self):
for service in self.services:
self.removeService(service)
super(ServiceGroup, self).destroySelf()
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1493586&group_id=74338
|