diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-07-17 02:42:50 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-08-18 22:35:29 +0300 |
commit | 9ce1c5b96120b412e5fbbe25bb03b9ab245a4221 (patch) | |
tree | 3884f1ad0ec35b224cc57f467c2e24d2776e86c8 /url_shortener/url_shortener.py | |
parent | 507bf9a93394d9db3fddd696183b3b8920ff92d8 (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 'url_shortener/url_shortener.py')
-rw-r--r-- | url_shortener/url_shortener.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/url_shortener/url_shortener.py b/url_shortener/url_shortener.py index c9de879..bd47efe 100644 --- a/url_shortener/url_shortener.py +++ b/url_shortener/url_shortener.py @@ -4,7 +4,7 @@ import gtk import json import urllib import urllib2 -from common import gajim +from common import app from common import ged from plugins import GajimPlugin from plugins.helpers import log_calls @@ -49,7 +49,7 @@ class UrlShortenerPlugin(GajimPlugin): if hasattr(event, 'shortened'): return - iterator = gajim.interface.basic_pattern_re.finditer(event.message) + iterator = app.interface.basic_pattern_re.finditer(event.message) for match in iterator: start, end = match.span() link = event.message[start:end] @@ -125,7 +125,7 @@ class Base(object): if is_xhtml_link: break # Check if we accept this as an uri - schemes = gajim.config.get('uri_schemes').split() + schemes = app.config.get('uri_schemes').split() for scheme in schemes: if special_text.startswith(scheme): text_is_valid_uri = True @@ -135,7 +135,7 @@ class Base(object): return end_iter = buffer_.get_end_iter() mark = buffer_.create_mark(None, end_iter, True) - gajim.thread_interface(self.insert_hyperlink, [mark, special_text, + app.thread_interface(self.insert_hyperlink, [mark, special_text, ttt]) self.textview.plugin_modified = True |