Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
gwibber
gwibber-stnx.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gwibber-stnx.diff of Package gwibber
Index: gwibber-3.1.2/gwibber/microblog/urlshorter/__init__.py =================================================================== --- gwibber-3.1.2.orig/gwibber/microblog/urlshorter/__init__.py +++ gwibber-3.1.2/gwibber/microblog/urlshorter/__init__.py @@ -1,8 +1,10 @@ import cligs, isgd, tinyurlcom, ur1ca +import stnx #import snipurlcom, zima PROTOCOLS = { + "stnx.at": stnx, "cli.gs": cligs, "is.gd": isgd, #"snipurl.com": snipurlcom, Index: gwibber-3.1.2/gwibber/microblog/urlshorter/stnx.py =================================================================== --- /dev/null +++ gwibber-3.1.2/gwibber/microblog/urlshorter/stnx.py @@ -0,0 +1,24 @@ + +""" + +stnx.at interface for Gwibber +macno (James Ogley) - 06/25/2009 + +""" + +import urllib2 + +PROTOCOL_INFO = { + + "name": "stnx.at", + "version": 0.1, + "fqdn" : "http://stnx.at", + +} + +class URLShorter: + + def short(self, text): + short = urllib2.urlopen("http://stnx.at/?u=%s&i=0" % urllib2.quote(text)).read().rstrip("\n") + return short + Index: gwibber-3.1.2/gwibber/microblog/urlshorter/Makefile.am =================================================================== --- gwibber-3.1.2.orig/gwibber/microblog/urlshorter/Makefile.am +++ gwibber-3.1.2/gwibber/microblog/urlshorter/Makefile.am @@ -4,6 +4,7 @@ gwibber_PYTHON = \ cligs.py \ isgd.py \ snipurlcom.py \ + stnx.py \ tinyurlcom.py \ ur1ca.py \ zima.py Index: gwibber-3.1.2/gwibber/microblog/urlshorter/Makefile.in =================================================================== --- gwibber-3.1.2.orig/gwibber/microblog/urlshorter/Makefile.in +++ gwibber-3.1.2/gwibber/microblog/urlshorter/Makefile.in @@ -268,6 +268,7 @@ gwibber_PYTHON = \ cligs.py \ isgd.py \ snipurlcom.py \ + stnx.py \ tinyurlcom.py \ ur1ca.py \ zima.py
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor