def __init__(self, username, password): AbstractAPI.__init__(self, username, password) self.cookiejar = cookielib.CookieJar() self.opener = urllib2.build_opener( urllib2.HTTPCookieProcessor(self.cookiejar)) self.opener.addheaders = [('User-Agent', 'Mozilla/5.0 technic-plugin-1.5')]
def __init__(self, username, password): AbstractAPI.__init__(self, username, password) self.time_shift = 0 self.protect_code = "" self.cookiejar = cookielib.CookieJar() self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookiejar)) self.opener.addheaders = [("User-Agent", "Mozilla/5.0 technic-plugin-1.5")]
def __init__(self, username, password): AbstractAPI.__init__(self, username, password) self.channels = {} self.aTime = 0
def __init__(self, username, password): AbstractAPI.__init__(self, username, password, VERSION) self.time_shift = 0 self.time_zone = 0 self.servertime = 0 self.settings = {}
def __init__(self, username, password): AbstractAPI.__init__(self, username, password) self.cookiejar = cookielib.CookieJar() self.opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(self.cookiejar)) self.opener.addheaders = [('User-Agent', 'Mozilla/5.0 technic-plugin-1.5')]