Bugs item #1493586, was opened at 2006-05-23 16:18
Message generated for change (Comment added) made by niemisto
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
Private: No
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()
----------------------------------------------------------------------
Comment By: Markus Niemistiemisto)
Date: 2006-11-10 15:51
Message:
Logged In: YES
user_id=459586
A proposed fix in patch [1593174]:
http://sourceforge.net/tracker/index.php?func=detail&aid=1593174&group_id=74338&atid=540674
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=540672&aid=1493586&group_id=74338
|