# coding: utf-8

import authomatic
from authomatic.providers import oauth1, oauth2
from unipath import Path
from decouple import config

# file paths
BASEDIR = Path(__file__).parent
SITE_STATIC = BASEDIR.child('findaconf', 'blueprints', 'site', 'static')

# db settings
uri = 'sqlite:///' + BASEDIR.child('app.db')
SQLALCHEMY_DATABASE_URI = config('DATABASE_URL', default=uri)

# debug settings
DEBUG = config('DEBUG', default=False, cast=bool)
ASSETS_DEBUG = config('ASSETS_DEBUG', default=False, cast=bool)

# security keys
SECRET_KEY = config('SECRET_KEY', default=False)

# service api keys
GOOGLE_PLACES_API = config('GOOGLE_PLACES_API', default=None)
GOOGLE_PLACES_API_PROXY = config('GOOGLE_PLACES_API_PROXY', default=None)

# oauth/oauth2 providers
OAUTH_CREDENTIALS = {

    'Google': {
        'class_': oauth2.Google,
        'consumer_key': config('GOOGLE_DEVELOPER_CLIENT_ID', default=None),
        'consumer_secret': config('GOOGLE_DEVELOPER_CLIENT_SECRET', default=None),
        'id': authomatic.provider_id(),
        'scope': oauth2.Google.user_info_scope,
    },

    'Twitter': {
        'class_': oauth1.Twitter,
        'consumer_key': config('TWITTER_DEVELOPER_CLIENT_ID', default=None),
        'consumer_secret': config('TWITTER_DEVELOPER_CLIENT_SECRET', default=None),
        'id': authomatic.provider_id(),
    },

    'Facebook': {
        'class_': oauth2.Facebook,
        'consumer_key': config('FACEBOOK_DEVELOPER_CLIENT_ID', default=None),
        'consumer_secret': config('FACEBOOK_DEVELOPER_CLIENT_SECRET', default=None),
        'id': authomatic.provider_id(),
        'scope': oauth2.Facebook.user_info_scope,
    },

    'Yahoo': {
        'class_': oauth1.Yahoo,
        'consumer_key': '##########--',
        'consumer_secret': '##########',
        'id': authomatic.provider_id(),
    },
}

# content settings
TITLE = 'Find a Conference'
LANGS = [
    {'code': 'zh', 'title': '中文'},
    {'code': 'el', 'title': 'Ελληνικά'},
    {'code': 'en', 'title': 'English'},
    {'code': 'es', 'title': 'Español'},
    {'code': 'it', 'title': 'Italiano'},
    {'code': 'pt', 'title': 'Português'},
    {'code': 'ro', 'title': 'Română'}
]

MONTHS = {
    1: 'January',
    2: 'February',
    3: 'March',
    4: 'April',
    5: 'May',
    6: 'June',
    7: 'July',
    8: 'August',
    9: 'September',
    10: 'October',
    11: 'November',
    12: 'December'
}

@@ -575,15 +575,14 @@
 %0A%0A# 
-serv
+publ
 ic
-e
  api
@@ -590,30 +590,40 @@
 keys%0AGOOGLE_
-PLACES
+DEVELOPER_PUBLIC
 _API = confi
@@ -628,30 +628,40 @@
 fig('GOOGLE_
-PLACES
+DEVELOPER_PUBLIC
 _API', defau
@@ -679,28 +679,24 @@
 OGLE_PLACES_
-API_
 PROXY = conf
@@ -717,12 +717,8 @@
 CES_
-API_
 PROX

Standardize config var names