diff options
| author | 2019-06-04 17:51:20 +0100 | |
|---|---|---|
| committer | 2019-06-04 17:51:20 +0100 | |
| commit | 8dbae6a5e93bd97a27552fbb5890c0919c592788 (patch) | |
| tree | d605cb9bb0a8b042081debc2ae15b0de92483ad0 /src/EventManager.py | |
| parent | `.on_send(` only exists on SentLines, not ParsedLines (diff) | |
| signature | ||
Give SentLine (and preproc.send events) a new event object, to track events
related to a line after it is sent
Diffstat (limited to 'src/EventManager.py')
| -rw-r--r-- | src/EventManager.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/EventManager.py b/src/EventManager.py index 18006058..473386c2 100644 --- a/src/EventManager.py +++ b/src/EventManager.py @@ -57,6 +57,9 @@ class EventHook(object): self._stored_events = [] # type: typing.List[typing.Dict] self._context_hooks = {} # type: typing.Dict[str, typing.List[EventCallback]] + def new_root(self) -> "EventHook": + return EventHook(self.log) + def _make_event(self, kwargs: dict) -> Event: return Event(self._get_path(), **kwargs) def make_event(self, **kwargs): |
