changeset 0cb31e935c60 in /home/hg/repos/gajim-plugins
author: tmolitor <thilo(a)eightysoft.de>
branches:
details:gajim-plugins?cmd=changeset;node=0cb31e935c60
description: merged remote changes...
diffstat:
gotr/otrmodule.py | 14 +++-----------
juick/plugin.py | 7 -------
whiteboard/plugin.py | 6 +-----
whiteboard/whiteboard_widget.py | 8 +-------
4 files changed, 5 insertions(+), 30 deletions(-)
diffs (94 lines):
diff -r ac71ceebd883 -r 0cb31e935c60 gotr/otrmodule.py
--- a/gotr/otrmodule.py Thu Nov 12 22:34:38 2015 +0100
+++ b/gotr/otrmodule.py Thu Nov 12 22:35:42 2015 +0100
@@ -68,7 +68,6 @@
from pprint import pformat
from distutils.version import StrictVersion
-import common.xmpp
from common import gajim
from common import ged
from common.connection_handlers_events import MessageOutgoingEvent
@@ -93,11 +92,7 @@
except ImportError:
HAS_CRYPTO = False
-nb_xmpp = False
-import common.xmpp
-if not dir(common.xmpp):
- import nbxmpp
- nb_xmpp = True
+import nbxmpp
HAS_POTR = True
try:
@@ -133,10 +128,7 @@
msg = unicode(msg)
account = self.user.accountname
- if not nb_xmpp:
- stanza = common.xmpp.Message(to=self.peer, body=msg, typ='chat')
- else:
- stanza = nbxmpp.Message(to=self.peer, body=msg, typ='chat')
+ stanza = nbxmpp.Message(to=self.peer, body=msg, typ='chat')
if appdata is not None:
session = appdata.get('session', None)
if session is not None:
@@ -741,4 +733,4 @@
def add_message_processing_hints(stanza):
stanza.addChild(name='private', namespace=nbxmpp.NS_CARBONS)
stanza.addChild(name='no-permanent-store', namespace=nbxmpp.NS_MSG_HINTS)
- stanza.addChild(name='no-copy', namespace=nbxmpp.NS_MSG_HINTS)
\ No newline at end of file
+ stanza.addChild(name='no-copy', namespace=nbxmpp.NS_MSG_HINTS)
diff -r ac71ceebd883 -r 0cb31e935c60 juick/plugin.py
--- a/juick/plugin.py Thu Nov 12 22:34:38 2015 +0100
+++ b/juick/plugin.py Thu Nov 12 22:35:42 2015 +0100
@@ -21,13 +21,6 @@
from conversation_textview import TextViewImage
import gtkgui_helpers
-nb_xmpp = False
-import common.xmpp
-if not dir(common.xmpp):
- import nbxmpp
- nb_xmpp = True
-
-
class JuickPlugin(GajimPlugin):
@log_calls('JuickPlugin')
def init(self):
diff -r ac71ceebd883 -r 0cb31e935c60 whiteboard/plugin.py
--- a/whiteboard/plugin.py Thu Nov 12 22:34:38 2015 +0100
+++ b/whiteboard/plugin.py Thu Nov 12 22:35:42 2015 +0100
@@ -34,11 +34,7 @@
from plugins.plugin import GajimPluginException
from plugins.helpers import log_calls, log
from common import gajim
-ver = list(gajim.config.get('version').split('.'))
-if ver < [0, 15, 3, 0]:
- from common.xmpp import Message
-else:
- from nbxmpp import Message
+from nbxmpp import Message
import gtk
import chat_control
from common import ged
diff -r ac71ceebd883 -r 0cb31e935c60 whiteboard/whiteboard_widget.py
--- a/whiteboard/whiteboard_widget.py Thu Nov 12 22:34:38 2015 +0100
+++ b/whiteboard/whiteboard_widget.py Thu Nov 12 22:35:42 2015 +0100
@@ -25,13 +25,7 @@
HAS_GOOCANVAS = True
except:
HAS_GOOCANVAS = False
-from common import gajim
-ver = list(gajim.config.get('version').split('.'))
-if ver < [0, 15, 3, 0]:
- from common.xmpp import Node
-else:
- from nbxmpp import Node
-
+from nbxmpp import Node
from dialogs import FileChooserDialog
'''