Пример #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')]
Пример #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")]
Пример #3
0
	def __init__(self, username, password):
		AbstractAPI.__init__(self, username, password)
		self.channels = {}
		self.aTime = 0
Пример #4
0
 def __init__(self, username, password):
     AbstractAPI.__init__(self, username, password)
     self.channels = {}
     self.aTime = 0
Пример #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 = {}
Пример #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')]