Replaced references to Api with OAuthApi... also broke the code terribly, but that's the point of this branch

This commit is contained in:
Anna
2010-05-20 14:09:10 -04:00
parent 38f27fff96
commit 1299bdbdee
2 changed files with 210 additions and 4 deletions

View File

@ -4,20 +4,20 @@ import re
import gtk, gobject
from threading import Thread,RLock
import twitter_pb2
from twitter import Api
from oauthtwitter import OAuthApi
from urllib2 import HTTPError,URLError
import avcache
class CustomApi(Api):
class CustomApi(OAuthApi):
'''
This is a Twitter API with an RLock for multi-threaded access
Also included is logic for processing the list names when the object is
instantiated
'''
def __init__(self, username, password):
Api.__init__(self, username, password)
def __init__(self):
OAuthApi.__init__(self, username, password)
self.lock = RLock()
self.sig_proxy = SigProxy()