Bugs item #1493586, was opened at 2006-05-23 17:18
Message generated for change (Settings changed) made by phd
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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Oleg Broytmann (phd)
>Assigned to: Oleg Broytmann (phd)
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 16: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
|