From 8383f773413cee8529ad4fdc05f092286d6dd377 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 30 Jun 2016 23:57:12 +0200 Subject: Use a "core" parameter for each tab object instead of a singleton fixes the circular import issue --- poezio/tabs/data_forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'poezio/tabs/data_forms.py') diff --git a/poezio/tabs/data_forms.py b/poezio/tabs/data_forms.py index 82c0f128..0edf9e89 100644 --- a/poezio/tabs/data_forms.py +++ b/poezio/tabs/data_forms.py @@ -14,8 +14,8 @@ class DataFormsTab(Tab): a form that the user needs to fill. """ plugin_commands = {} - def __init__(self, form, on_cancel, on_send, kwargs): - Tab.__init__(self) + def __init__(self, core, form, on_cancel, on_send, kwargs): + Tab.__init__(self, core) self._form = form self._on_cancel = on_cancel self._on_send = on_send -- cgit v1.2.3