Esempio n. 1
0
    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')]
Esempio n. 2
0
    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")]
Esempio n. 3
0
	def __init__(self, username, password):
		AbstractAPI.__init__(self, username, password)
		self.channels = {}
		self.aTime = 0
Esempio n. 4
0
 def __init__(self, username, password):
     AbstractAPI.__init__(self, username, password)
     self.channels = {}
     self.aTime = 0
Esempio n. 5
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 = {}
Esempio n. 6
0
	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')]