Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2
gwibber
gwibber-stnx.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gwibber-stnx.diff of Package gwibber
diff -ruN gwibber-1.2.0+bzr346.orig/gwibber/urlshorter/__init__.py gwibber-1.2.0+bzr346.stnx/gwibber/urlshorter/__init__.py --- gwibber-1.2.0+bzr346.orig/gwibber/urlshorter/__init__.py 2009-06-26 15:43:56.000000000 +0100 +++ gwibber-1.2.0+bzr346.stnx/gwibber/urlshorter/__init__.py 2009-06-30 14:41:02.000000000 +0100 @@ -1,5 +1,5 @@ -import cligs, isgd, tinyurlcom, trim, ur1ca, punyslpt, upunyslpt, unu +import cligs, isgd, tinyurlcom, trim, ur1ca, punyslpt, upunyslpt, unu, stnx #import snipurlcom, zima PROTOCOLS = { @@ -13,4 +13,5 @@ "puny.sl.pt": punyslpt, "puny.sl.pt (unicode)": upunyslpt, "u.nu" : unu, + "stnx.at": stnx, } diff -ruN gwibber-1.2.0+bzr346.orig/gwibber/urlshorter/stnx.py gwibber-1.2.0+bzr346.stnx/gwibber/urlshorter/stnx.py --- gwibber-1.2.0+bzr346.orig/gwibber/urlshorter/stnx.py 1970-01-01 01:00:00.000000000 +0100 +++ gwibber-1.2.0+bzr346.stnx/gwibber/urlshorter/stnx.py 2009-06-30 14:40:16.000000000 +0100 @@ -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/api?u=%s&i=0" % urllib2.quote(text)).read().rstrip("\n") + return short +
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