Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-07-17 02:42:50 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-08-18 22:35:29 +0300
commit9ce1c5b96120b412e5fbbe25bb03b9ab245a4221 (patch)
tree3884f1ad0ec35b224cc57f467c2e24d2776e86c8 /omemo/ui.py
parent507bf9a93394d9db3fddd696183b3b8920ff92d8 (diff)
Use absolute imports on all pluginsomemo_2.3.6
This is necessary because Gajim is with 0.16.11 a python package
Diffstat (limited to 'omemo/ui.py')
-rw-r--r--omemo/ui.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/omemo/ui.py b/omemo/ui.py
index 8755583..fe63ffa 100644
--- a/omemo/ui.py
+++ b/omemo/ui.py
@@ -38,10 +38,10 @@ except ImportError as error:
log.debug(error)
log.error('python-qrcode or dependencies of it are not available')
-from common import gajim
-from common import configpaths
-from dialogs import YesNoDialog
-from plugins.gui import GajimPluginConfigDialog
+from gajim.common import app
+from gajim.common import configpaths
+from gajim.dialogs import YesNoDialog
+from gajim.plugins.gui import GajimPluginConfigDialog
@unique
@@ -88,7 +88,7 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
self.plugin_active = False
def on_run(self):
- for plugin in gajim.plugin_manager.active_plugins:
+ for plugin in app.plugin_manager.active_plugins:
log.debug(type(plugin))
if type(plugin).__name__ == 'OmemoPlugin':
self.plugin_active = True
@@ -104,7 +104,7 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
return False
def update_account_store(self):
- for account in sorted(gajim.contacts.get_accounts()):
+ for account in sorted(app.contacts.get_accounts()):
if account not in self.disabled_accounts and \
not self.is_in_accountstore(account):
self.account_store.append(row=(account,))
@@ -358,7 +358,7 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
# Set QR Verification Code
if PILLOW:
path = self.get_qrcode(
- gajim.get_jid_from_account(account), deviceid, ownfpr[2:])
+ app.get_jid_from_account(account), deviceid, ownfpr[2:])
self.qrcode.set_from_pixbuf(GdkPixbuf.Pixbuf.new_from_file(path))
self.qrinfo.hide()
else:
@@ -374,7 +374,7 @@ class FingerprintWindow(Gtk.Dialog):
self.account = self.contact.account.name
self.plugin = plugin
self.omemostate = self.plugin.get_omemo_state(self.account)
- self.own_jid = gajim.get_jid_from_account(self.account)
+ self.own_jid = app.get_jid_from_account(self.account)
Gtk.Dialog.__init__(self,
title=('Fingerprints for %s') % contact.jid,
parent=parent,