Register processors to hooks
(self)
| 1378 | return hooks |
| 1379 | |
| 1380 | def register_processors(self): |
| 1381 | """Register processors to hooks |
| 1382 | """ |
| 1383 | for hook in self.hooks: |
| 1384 | if hasattr(hook, 'register_processor'): |
| 1385 | hook.register_processor(self) |
| 1386 | |
| 1387 | def get_hook(self, cls): |
| 1388 | return [h for h in self._hooks if h.__class__ == cls] |