hooks/integrity.py
changeset 9680 8fb8f001f4e2
parent 9613 45370ea9f495
child 10662 10942ed172de
equal deleted inserted replaced
9679:a3a516cf8624 9680:8fb8f001f4e2
   316     """
   316     """
   317     __regid__ = 'deletecomposite'
   317     __regid__ = 'deletecomposite'
   318     __select__ = hook.Hook.__select__ & composite_etype()
   318     __select__ = hook.Hook.__select__ & composite_etype()
   319     events = ('before_delete_entity',)
   319     events = ('before_delete_entity',)
   320     category = 'activeintegrity'
   320     category = 'activeintegrity'
       
   321     # give the application's before_delete_entity hooks a chance to run before we cascade
       
   322     order = 99
   321 
   323 
   322     def __call__(self):
   324     def __call__(self):
   323         eid = self.entity.eid
   325         eid = self.entity.eid
   324         for rdef, role in self.entity.e_schema.composite_rdef_roles:
   326         for rdef, role in self.entity.e_schema.composite_rdef_roles:
   325             rtype = rdef.rtype.type
   327             rtype = rdef.rtype.type