def __init__(self): BasicUserCookie.__init__(self) self.main_login = '' self.openid = '' self.appid = '' self.access_token = '' self.vuserid = '' self.vusession = ''
def checkQuery(self, query): BasicUserCookie.checkQuery(self, query) if not query: return key, value = [i.strip().strip('"').strip("'") for i in splitvalue(query)] if key == 'main_login': self.main_login = value elif 'openid' in key: self.openid = value elif 'appid' in key: self.appid = value elif 'access_token' in key: self.access_token = value elif 'vuserid' in key: self.vuserid = value elif 'vusession' in key: self.vusession = value