Welcome | Get started | Dive into Lino | Contribute | Reference | More
lino_xl.lib.google¶
This is Lino's module to make synchronization with Google's content. See google : Synchronization with Google.
Classes
|
- class lino_xl.lib.google.Plugin(site, app_label, app_name, app_module, needed_by, configs: dict)¶
Bases:
Plugin
- sync_immediately = False¶
Not used yet.
Syncs a database entry with google on save.
- client_secret_file = None¶
The path to the GoogleAPI secret file.
- scopes = ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email', 'https://www.googleapis.com/auth/contacts', 'https://www.googleapis.com/auth/calendar', 'https://www.googleapis.com/auth/calendar.events']¶
GoogleAPi Scopes
After modifying these scopes, delete all database entry for this provider and reauthenticate.
- application_name = 'LinoOAuthClient'¶
The Application's name defined in the google API Console
- static has_scope(scope_type, user)¶
- Parameters:
scope_type (str) -- Should be either 'calendar' or 'contact'
- Return bool:
Tells whether a certain type of scope is available for the user.