equal
deleted
inserted
replaced
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 |