Merge lp:~sindhudweep-sarkar/gwibber/linkyy into lp:gwibber

Proposed by Sindhudweep Sarkar
Status: Rejected
Rejected by: Ken VanDine
Proposed branch: lp:~sindhudweep-sarkar/gwibber/linkyy
Merge into: lp:gwibber
Diff against target: 47 lines (+27/-1)
2 files modified
gwibber/microblog/urlshorter/__init__.py (+2/-1)
gwibber/microblog/urlshorter/linkyycom.py (+25/-0)
To merge this branch: bzr merge lp:~sindhudweep-sarkar/gwibber/linkyy
Reviewer Review Type Date Requested Status
Omer Akram (community) Needs Fixing
gwibber-committers Pending
Review via email: mp+20287@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sindhudweep Sarkar (sindhudweep-sarkar) wrote :

This closes LP: 529275

Revision history for this message
Omer Akram (om26er) wrote :

Sindhudweep Sarkar your branch does not apply to current trunk

review: Needs Fixing

Unmerged revisions

629. By Sindhudweep Sarkar

Fix LP: 529275 - Gwibber does not support linkyy as an url shortener

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'gwibber/microblog/urlshorter/__init__.py'
--- gwibber/microblog/urlshorter/__init__.py 2009-04-15 22:56:03 +0000
+++ gwibber/microblog/urlshorter/__init__.py 2010-02-28 00:30:30 +0000
@@ -1,5 +1,5 @@
11
2import cligs, isgd, tinyurlcom, trim, ur1ca2import cligs, isgd, tinyurlcom, trim, ur1ca, linkyycom
3#import snipurlcom, zima3#import snipurlcom, zima
44
5PROTOCOLS = {5PROTOCOLS = {
@@ -9,5 +9,6 @@
9 "tinyurl.com": tinyurlcom,9 "tinyurl.com": tinyurlcom,
10 "tr.im": trim,10 "tr.im": trim,
11 "ur1.ca": ur1ca,11 "ur1.ca": ur1ca,
12 "linkyy.com": linkyycom
12 #"zi.ma": zima,13 #"zi.ma": zima,
13}14}
1415
=== added file 'gwibber/microblog/urlshorter/linkyycom.py'
--- gwibber/microblog/urlshorter/linkyycom.py 1970-01-01 00:00:00 +0000
+++ gwibber/microblog/urlshorter/linkyycom.py 2010-02-28 00:30:30 +0000
@@ -0,0 +1,25 @@
1
2"""
3
4linkyy.com interface for Gwibber
5Sindhudweep N. Sarkar - 2/27/2010
6based off of the tinyurl gwibber interface by macno (Michele Azzolari)
7
8"""
9
10import urllib2
11
12PROTOCOL_INFO = {
13
14 "name": "linkyy.com",
15 "version": 0.1,
16 "fqdn" : "http://linkyy.com",
17
18}
19
20class URLShorter:
21
22 def short(self, text):
23 short = urllib2.urlopen("http://linkyy.com/create_api?url=%s" % urllib2.quote(text)).read()
24 return short
25