Move dataforms into modules folder

This commit is contained in:
Philipp Hörist 2018-07-21 14:35:28 +02:00
parent 1156897b5d
commit 5ff9e9febf
14 changed files with 15 additions and 17 deletions

View File

@ -29,13 +29,14 @@ from gi.repository import Gtk
import nbxmpp import nbxmpp
from gajim.common import app from gajim.common import app
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import ged from gajim.common import ged
from gajim import gtkgui_helpers from gajim import gtkgui_helpers
from gajim.gtk import HigDialog from gajim.gtk import HigDialog
from gajim import dataforms_widget from gajim import dataforms_widget
class CommandWindow: class CommandWindow:
""" """
Class for a window for single ad-hoc commands session Class for a window for single ad-hoc commands session

View File

@ -449,7 +449,7 @@ class MucCapsCache:
features.append(child.getAttr('var')) features.append(child.getAttr('var'))
elif child.getName() == 'x': elif child.getName() == 'x':
if child.getNamespace() == nbxmpp.NS_DATA: if child.getNamespace() == nbxmpp.NS_DATA:
from gajim.common import dataforms from gajim.common.modules import dataforms
data.append(dataforms.ExtendForm(node=child)) data.append(dataforms.ExtendForm(node=child))
if nbxmpp.NS_MUC not in features: if nbxmpp.NS_MUC not in features:

View File

@ -36,7 +36,7 @@ from gajim.common import nec
from gajim.common import helpers from gajim.common import helpers
from gajim.common import app from gajim.common import app
from gajim.common import i18n from gajim.common import i18n
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common.zeroconf.zeroconf import Constant from gajim.common.zeroconf.zeroconf import Constant
from gajim.common.const import KindConstant, SSLError from gajim.common.const import KindConstant, SSLError
from gajim.common.pep import SUPPORTED_PERSONAL_USER_EVENTS from gajim.common.pep import SUPPORTED_PERSONAL_USER_EVENTS

View File

@ -23,7 +23,7 @@ import logging
import nbxmpp import nbxmpp
from gajim.common import helpers from gajim.common import helpers
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import app from gajim.common import app
from gajim.common.nec import NetworkIncomingEvent from gajim.common.nec import NetworkIncomingEvent

View File

@ -16,10 +16,7 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with Gajim. If not, see <http://www.gnu.org/licenses/>. # along with Gajim. If not, see <http://www.gnu.org/licenses/>.
""" # XEP-0004: Data Forms
This module contains wrappers for different parts of data forms (XEP-0004). For
information how to use them, read documentation
"""
import nbxmpp import nbxmpp

View File

@ -20,7 +20,7 @@ import logging
import nbxmpp import nbxmpp
from gajim.common import i18n from gajim.common import i18n
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import app from gajim.common import app
from gajim.common import helpers from gajim.common import helpers
from gajim.common.nec import NetworkIncomingEvent from gajim.common.nec import NetworkIncomingEvent

View File

@ -25,7 +25,7 @@ import logging
import nbxmpp import nbxmpp
from gajim.common import app from gajim.common import app
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common.nec import NetworkIncomingEvent from gajim.common.nec import NetworkIncomingEvent
log = logging.getLogger('gajim.c.m.pubsub') log = logging.getLogger('gajim.c.m.pubsub')

View File

@ -62,7 +62,7 @@ from gajim.gtk import WarningDialog
from gajim.common import helpers from gajim.common import helpers
from gajim.common import app from gajim.common import app
from gajim.common import connection from gajim.common import connection
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import ged from gajim.common import ged
from gajim.common import configpaths from gajim.common import configpaths
from gajim.accounts_window import AccountsWindow from gajim.accounts_window import AccountsWindow

View File

@ -34,7 +34,7 @@ import base64
from gajim import gtkgui_helpers from gajim import gtkgui_helpers
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import helpers from gajim.common import helpers
from gajim.common import app from gajim.common import app

View File

@ -51,7 +51,7 @@ from gajim.common.const import MOODS
from gajim.common import app from gajim.common import app
from gajim.common import helpers from gajim.common import helpers
from gajim.common import i18n from gajim.common import i18n
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common.exceptions import GajimGeneralException from gajim.common.exceptions import GajimGeneralException
# Compat with Gajim 1.0.3 for plugins # Compat with Gajim 1.0.3 for plugins

View File

@ -55,7 +55,7 @@ from enum import IntEnum, unique
from gajim.common import events from gajim.common import events
from gajim.common import app from gajim.common import app
from gajim.common import helpers from gajim.common import helpers
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import ged from gajim.common import ged
from gajim.common import i18n from gajim.common import i18n
from gajim.common import contacts from gajim.common import contacts

View File

@ -16,7 +16,7 @@ from gi.repository import Gdk
from gi.repository import GLib from gi.repository import GLib
from gajim.common import app from gajim.common import app
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import helpers from gajim.common import helpers
from gajim.common.connection_handlers_events import MessageOutgoingEvent from gajim.common.connection_handlers_events import MessageOutgoingEvent
from gajim.gtk import ErrorDialog from gajim.gtk import ErrorDialog

View File

@ -22,7 +22,7 @@
from gajim import gtkgui_helpers from gajim import gtkgui_helpers
from gajim import dataforms_widget from gajim import dataforms_widget
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import app from gajim.common import app
import nbxmpp import nbxmpp

View File

@ -24,7 +24,7 @@ from gi.repository import Gtk
from gi.repository import Gdk from gi.repository import Gdk
from gajim.common import app from gajim.common import app
from gajim.common import dataforms from gajim.common.modules import dataforms
from gajim.common import ged from gajim.common import ged
from gajim import gtkgui_helpers from gajim import gtkgui_helpers