From 549a74c96c7a0209cf0cd3eb0fc94c285628b897 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Wed, 22 Sep 2010 12:34:59 +0400 Subject: [PATCH 1/2] Change the home pages for plugins in manifestos --- clickable_nicknames/manifest.ini | 2 +- juick/manifest.ini | 2 +- set_location/manifest.ini | 2 +- wrong_layout/manifest.ini | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clickable_nicknames/manifest.ini b/clickable_nicknames/manifest.ini index 4cf6838..bcde053 100644 --- a/clickable_nicknames/manifest.ini +++ b/clickable_nicknames/manifest.ini @@ -4,5 +4,5 @@ short_name: clickable_nicknames version: 0.1 description: Clickable nicknames in the conversation textview. authors: Denis Fomin -homepage: http://bitbucket.org/dicson12/plugins/src/tip/clickable_nicknames/ +homepage: http://trac-plugins.gajim.org/wiki/ClickableNicknamesPlugin diff --git a/juick/manifest.ini b/juick/manifest.ini index 9b4f3cb..1c19bd6 100644 --- a/juick/manifest.ini +++ b/juick/manifest.ini @@ -5,5 +5,5 @@ version: 0.2 description: Clickable juick links , juick nics, preview juick picturs. The key combination alt + up in the textbox allow insert the number of last message (comment or topic). authors: Denis Fomin >, evgen -homepage: http://bitbucket.org/dicson12/plugins/src/tip/juick/ +homepage: http://trac-plugins.gajim.org/wiki/JuickPlugin diff --git a/set_location/manifest.ini b/set_location/manifest.ini index d2cda54..1bc1b09 100644 --- a/set_location/manifest.ini +++ b/set_location/manifest.ini @@ -4,5 +4,5 @@ short_name: set_location version: 0.1 description: Set information about the current geographical or physical location. authors: Denis Fomin -homepage: http://bitbucket.org/dicson12/plugins/src/tip/set_location/ +homepage: http://trac-plugins.gajim.org/wiki/SetLocalitionPlugin diff --git a/wrong_layout/manifest.ini b/wrong_layout/manifest.ini index 939ade9..10de54b 100644 --- a/wrong_layout/manifest.ini +++ b/wrong_layout/manifest.ini @@ -4,5 +4,5 @@ short_name: Wrong Layout version: 0.1 description: Press alt+r to convert chars typed in wrong layout Rus<>Eng authors: Denis Fomin -homepage: http://bitbucket.org/dicson12/plugins/src/tip/wrong_layout/ +homepage: http://trac-plugins.gajim.org/wiki/WrongLayoutPlugin From 6b0a0dacc42dd10fe64d20318ddd1d01343d19b7 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Wed, 22 Sep 2010 13:57:32 +0400 Subject: [PATCH 2/2] Juick. Improved Image Search --- juick/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/juick/plugin.py b/juick/plugin.py index f5b8371..b17cacb 100644 --- a/juick/plugin.py +++ b/juick/plugin.py @@ -142,7 +142,7 @@ class Base(object): juick_nick = r'@[a-zA-Z0-9_@\.-]+:' else: juick_nick = r'@[a-zA-Z0-9_@:\.-]+' - juick_pic = r'http://i\.juick\.com/p/\d+\.jpg|http://i\.juick\.com/p/\d+\.JPG' + juick_pic = r'http://i\.juick\.com/.+/[0-9-]+\.[JPG|jpg]' interface = gajim.interface interface.sharp_slash_re = re.compile(sharp_slash) self.juick_nick_re = interface.juick_nick_re = re.compile(juick_nick) @@ -340,7 +340,7 @@ class Base(object): buffer_, iter_, tag = self.get_iter_and_tag('url') mark = buffer_.create_mark(None, iter_, True) buffer_.insert_with_tags(iter_, special_text, tag) - uid = special_text.split('p/')[1] + uid = special_text.split('/')[-1] url = "http://i.juick.com/photos-512/%s" % uid pixbuf = self.get_pixbuf_from_url( url, self.plugin.config['PREVIEW_SIZE'])