From f7a5847f75f4cd2171f9b1ddf5bf2320af0411c1 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Thu, 1 May 2014 05:24:50 +0200 Subject: [PATCH] Move data_forms in the tabs directory --- src/core/core.py | 3 +-- src/tabs/__init__.py | 1 + src/{ => tabs}/data_forms.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{ => tabs}/data_forms.py (100%) diff --git a/src/core/core.py b/src/core/core.py index 805cd838..e38e37d1 100644 --- a/src/core/core.py +++ b/src/core/core.py @@ -35,7 +35,6 @@ from common import safeJID from config import config, firstrun from contact import Contact, Resource from daemon import Executor -from data_forms import DataFormsTab from fifo import Fifo from keyboard import Keyboard from logger import logger @@ -1165,7 +1164,7 @@ class Core(object): The callback are called with the completed form as parameter in addition with kwargs """ - form_tab = DataFormsTab(form, on_cancel, on_send, kwargs) + form_tab = tabs.DataFormsTab(form, on_cancel, on_send, kwargs) self.add_tab(form_tab, True) ### Modifying actions ### diff --git a/src/tabs/__init__.py b/src/tabs/__init__.py index a0ad089b..67c686b5 100644 --- a/src/tabs/__init__.py +++ b/src/tabs/__init__.py @@ -7,3 +7,4 @@ from . conversationtab import ConversationTab, StaticConversationTab,\ DynamicConversationTab from . xmltab import XMLTab from . muclisttab import MucListTab +from . data_forms import DataFormsTab diff --git a/src/data_forms.py b/src/tabs/data_forms.py similarity index 100% rename from src/data_forms.py rename to src/tabs/data_forms.py