import os

from website.addons.googledrive import routes, model, views


MODELS = [
    model.GoogleDriveUserSettings,
    model.GoogleDriveNodeSettings,
    model.GoogleDriveOAuthSettings,
    model.GoogleDriveGuidFile,
]
USER_SETTINGS_MODEL = model.GoogleDriveUserSettings
NODE_SETTINGS_MODEL = model.GoogleDriveNodeSettings

ROUTES = [routes.auth_routes, routes.api_routes]

SHORT_NAME = 'googledrive'
FULL_NAME = 'Google Drive'

OWNERS = ['user', 'node']  # can include any of ['user', 'node']

VIEWS = []  # page, widget
CONFIGS = ['user', 'node']  # any of ['user', 'node']

CATEGORIES = ['storage']

INCLUDE_JS = {
    'page': [],
    'files': []
}

INCLUDE_CSS = {
    'page': [],
    'files': []
}

HAS_HGRID_FILES = True  # set to True for storage addons that display in HGrid
GET_HGRID_DATA = views.hgrid.googledrive_addon_folder
# MAX_FILE_SIZE = 10  # MB

HERE = os.path.dirname(os.path.abspath(__file__))
NODE_SETTINGS_TEMPLATE = None  # use default nodes settings templates
USER_SETTINGS_TEMPLATE = os.path.join(HERE, 'templates', 'googledrive_user_settings.mako')
