<s> from __future__ import absolute_import <EOL> from google . appengine . ext import ndb <EOL> from api import fields <EOL> import model <EOL> class ConfigAuth ( object ) : <EOL> bitbucket_key = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> bitbucket_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> dropbox_app_key = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> dropbox_app_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> facebook_app_id = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> facebook_app_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> github_client_id = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> github_client_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> google_client_id = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> google_client_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> instagram_client_id = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> instagram_client_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> linkedin_api_key = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> linkedin_secret_key = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> microsoft_client_id = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> microsoft_client_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> reddit_client_id = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> reddit_client_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> twitter_consumer_key = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> twitter_consumer_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> vk_app_id = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> vk_app_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> yahoo_consumer_key = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> yahoo_consumer_secret = ndb . StringProperty ( default = '<STR_LIT>' , verbose_name = '<STR_LIT>' ) <EOL> @ property <EOL> def has_bitbucket ( self ) : <EOL> return bool ( self . bitbucket_key and self . bitbucket_secret ) <EOL> @ property <EOL> def has_dropbox ( self ) : <EOL> return bool ( self . dropbox_app_key and self . dropbox_app_secret ) <EOL> @ property <EOL> def has_facebook ( self ) : <EOL> return bool ( self . facebook_app_id and self . facebook_app_secret ) <EOL> @ property <EOL> def has_google ( self ) : <EOL> return bool ( self . google_client_id and self . google_client_secret ) <EOL> @ property <EOL> def has_github ( self ) : <EOL> return bool ( self . github_client_id and self . github_client_secret ) <EOL> @ property <EOL> def has_instagram ( self ) : <EOL> return bool ( self . instagram_client_id and self . instagram_client_secret ) <EOL> @ property <EOL> def has_linkedin ( self ) : <EOL> return bool ( self . linkedin_api_key and self . linkedin_secret_key ) <EOL> @ property <EOL> def has_microsoft ( self ) : <EOL> return bool ( self . microsoft_client_id and self . microsoft_client_secret ) <EOL> @ property <EOL> def has_reddit ( self ) : <EOL> return bool ( self . reddit_client_id and self . reddit_client_secret ) <EOL> @ property <EOL> def has_twitter ( self ) : <EOL> return bool ( self . twitter_consumer_key and self . twitter_consumer_secret ) <EOL> @ property <EOL> def has_vk ( self ) : <EOL> return bool ( self . vk_app_id and self . vk_app_secret ) <EOL> @ property <EOL> def has_yahoo ( self ) : <EOL> return bool ( self . yahoo_consumer_key and self . yahoo_consumer_secret ) <EOL> FIELDS = { <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> '<STR_LIT>' : fields . String , <EOL> } <EOL> FIELDS . update ( model . Base . FIELDS ) </s>
