~om26er/ubuntu/maverick/gwibber/gwibber-fix-674894

« back to all changes in this revision

Viewing changes to debian/custom.py

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2010-08-23 23:35:05 UTC
  • mfrom: (1.1.27 upstream)
  • Revision ID: james.westby@ubuntu.com-20100823233505-09ia0jkzi9l0ukqg
Tags: 2.31.91-0ubuntu1
* New upstream release
  - Port twitter service to OAuth, basic auth is no longer
    supported (LP: #627565)
  - Delay setting the position of the vertical splitter
  - Fix PerformOp for single operation, including delete and 
    like (LP: #616798)
  - Make the string for the Translate action i18n 
    friendly (Vadim Rutkovsky)
  - Convert identi.ca groups (!) to hashtags (#) for re-denting if 
    global_retweet is true (Vadim Rutkovsky) (LP: #539786)
  - Handle null responses gracefully (James Ogley) (LP: #623309)
  - recognize valid unicode URLs (LP: #333390)
  - Don't crash if there is an invalid value for a preference (LP: #623335)
* debian/gwibber-service.install
  - Install files needed for twitter oauth

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from os.path import join, exists
 
2
 
 
3
prv_file = join("/usr/share/gwibber/data", "twitter")
 
4
if exists(prv_file):
 
5
  f = open(prv_file, "r")
 
6
  try:
 
7
    data = eval(f.read())
 
8
  except:
 
9
    pass
 
10
 
 
11
TWITTER_OAUTH_KEY = data["TWITTER_OAUTH_KEY"]
 
12
TWITTER_OAUTH_SECRET = data["TWITTER_OAUTH_SECRET"]