changeset 60595dfa0f19 in /home/hg/repos/gajim-plugins
author: Denis Fomin fominde@gmail.com branches: details:gajim-plugins?cmd=changeset;node=60595dfa0f19 description: UrlShortenerPlugin. Fix deactivation
diffstat:
url_shortener/manifest.ini | 2 +- url_shortener/url_shortener.py | 2 ++ 2 файлов изменено, 3 вставок(+), 1 удалений(-)
различия (24 строк):
diff -r b024c3868083 -r 60595dfa0f19 url_shortener/manifest.ini --- a/url_shortener/manifest.ini Sun Sep 01 22:33:43 2013 -0400 +++ b/url_shortener/manifest.ini Wed Sep 04 21:54:48 2013 +0400 @@ -1,7 +1,7 @@ [info] name: Url Shortener short_name: url_shortener -version: 0.3.3 +version: 0.3.4 description: Plugin that allows users to shorten a long URL in messages.<br/> For example, you can turn this link:<br/> <a href="http://maps.google.com/maps?f=d&saddr=New+York+Penn+Station&daddr=9th+Ave+%26+14th+St,+New+York,+NY&hl=en&geocode=&mra=ls&dirflg=r&date=11%2F12%2F08&time=4:13pm&ttype=dep&noexp=0&noal=0&sort=&sll=40.746175,-73.998395&sspn=0.014468,0.036392&ie=UTF8&z=14">http://maps.google.com/maps?f=d&saddr=New+York+Penn+Station&daddr=9th+Ave+%26+14th+St,+New+York,+NY&hl=en&geocode=&mra=ls&dirflg=r&date=11%2F12%2F08&time=4:13pm&ttype=dep&noexp=0&noal=0&sort=&sll=40.746175,-73.998395&sspn=0.014468,0.036392&ie=UTF8&z=14</a><br/> diff -r b024c3868083 -r 60595dfa0f19 url_shortener/url_shortener.py --- a/url_shortener/url_shortener.py Sun Sep 01 22:33:43 2013 -0400 +++ b/url_shortener/url_shortener.py Wed Sep 04 21:54:48 2013 +0400 @@ -104,6 +104,8 @@ self.chat_control.handlers[self.id_] = self.textview.tv
def print_special_text(self, special_text, other_tags, graphics=True): + if not self.plugin.active: + return is_xhtml_link = None text_is_valid_uri = False buffer_ = self.textview.tv.get_buffer()