#174 destroySelf() must remove the object from related joins

closed-fixed
Oleg Broytman
None
5
2006-11-10
2006-05-23
Oleg Broytman
No

.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()

Discussion

  • Oleg Broytman
    Oleg Broytman
    2006-11-10

    • status: open --> closed
     
  • Oleg Broytman
    Oleg Broytman
    2006-11-10

    • assigned_to: nobody --> phd
    • status: closed --> closed-fixed