コード例 #1
0
ファイル: google.py プロジェクト: ubuntu-ir/starcal
 def setData(self, data):
     Account.setData(self, data)
     for attr in ('email', ):
         try:
             setattr(self, attr, data[attr])
         except KeyError:
             pass
コード例 #2
0
ファイル: google.py プロジェクト: greyzero/starcal
 def setData(self, data):
     Account.setData(self, data)
     for attr in ('email',):
         try:
             setattr(self, attr, data[attr])
         except KeyError:
             pass
コード例 #3
0
ファイル: google.py プロジェクト: ubuntu-ir/starcal
 def __init__(self, aid=None, email=''):
     from oauth2client.client import OAuth2WebServerFlow
     Account.__init__(self, aid)
     self.authFile = splitext(self.file)[0] + '.oauth2'
     self.email = email
     self.flow = OAuth2WebServerFlow(
         client_id='536861675971.apps.googleusercontent.com',
         client_secret='BviBsCKTbXrzY0hZbioS6FAt',
         scope=[
             'https://www.googleapis.com/auth/calendar',
             'https://www.googleapis.com/auth/tasks',
         ],
         user_agent='%s/%s' % (core.APP_NAME, core.VERSION),
     )
コード例 #4
0
ファイル: google.py プロジェクト: greyzero/starcal
 def __init__(self, aid=None, email=''):
     from oauth2client.client import OAuth2WebServerFlow
     Account.__init__(self, aid)
     self.authFile = splitext(self.file)[0] + '.oauth2'
     self.email = email
     self.flow = OAuth2WebServerFlow(
         client_id='536861675971.apps.googleusercontent.com',
         client_secret='BviBsCKTbXrzY0hZbioS6FAt',
         scope=[
             'https://www.googleapis.com/auth/calendar',
             'https://www.googleapis.com/auth/tasks',
         ],
         user_agent='%s/%s'%(core.APP_NAME, core.VERSION),
     )
コード例 #5
0
	def __init__(self, aid=None, email=""):
		from oauth2client.client import OAuth2WebServerFlow
		Account.__init__(self, aid)
		self.authFile = splitext(self.file)[0] + ".oauth2"
		self.email = email
		self.flow = OAuth2WebServerFlow(
			client_id="536861675971.apps.googleusercontent.com",
			client_secret="BviBsCKTbXrzY0hZbioS6FAt",
			scope=[
				"https://www.googleapis.com/auth/calendar",
				"https://www.googleapis.com/auth/tasks",
			],
			user_agent="%s/%s" % (core.APP_NAME, core.VERSION),
		)
コード例 #6
0
ファイル: starcal.py プロジェクト: ilius/starcal
	def __init__(self, aid=None):
		Account.__init__(self, aid)
		self.email = ""
		self.password = ""
		self.lastToken = ""
コード例 #7
0
ファイル: starcal.py プロジェクト: ilius/starcal
 def __init__(self, aid=None):
     Account.__init__(self, aid)
     self.email = ""
     self.password = ""
     self.lastToken = ""
コード例 #8
0
ファイル: google.py プロジェクト: ubuntu-ir/starcal
 def getData(self):
     data = Account.getData(self)
     data.update({
         'email': self.email,
     })
     return data
コード例 #9
0
ファイル: google.py プロジェクト: greyzero/starcal
 def getData(self):
     data = Account.getData(self)
     data.update({
         'email': self.email,
     })
     return data
コード例 #10
0
	def setData(self, data):
		Account.setData(self, data)
		for attr in ("email",):
			if attr not in data:
				continue
			setattr(self, attr, data[attr])