equal
deleted
inserted
replaced
330 for _kwargs in _iter_kwargs(entities, eids_from_to, kwargs): |
330 for _kwargs in _iter_kwargs(entities, eids_from_to, kwargs): |
331 hooks = sorted(self.filtered_possible_objects(pruned, session, **_kwargs), |
331 hooks = sorted(self.filtered_possible_objects(pruned, session, **_kwargs), |
332 key=lambda x: x.order) |
332 key=lambda x: x.order) |
333 with security_enabled(session, write=False): |
333 with security_enabled(session, write=False): |
334 for hook in hooks: |
334 for hook in hooks: |
335 hook() |
335 hook() |
336 |
336 |
337 def get_pruned_hooks(self, session, event, entities, eids_from_to, kwargs): |
337 def get_pruned_hooks(self, session, event, entities, eids_from_to, kwargs): |
338 """return a set of hooks that should not be considered by filtered_possible objects |
338 """return a set of hooks that should not be considered by filtered_possible objects |
339 |
339 |
340 the idea is to make a first pass over all the hooks in the |
340 the idea is to make a first pass over all the hooks in the |