#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
from appy.database import log
from appy.server import guard, scheduler, backup
from appy import database, model, ui, server, deploy

#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
import appy
class Config(appy.Config):
    server = server.Config()
    security = guard.Config()
    backup = backup.Config()
    jobs = scheduler.Config()
    database = database.Config()
    log = log.Config()
    model = model.Config()
    model.rootClasses.append('Page')
    ui = ui.Config()
    ui.discreetLogin = True
    ui.headerShow = 'top'
    ui.fontSize = '110%'
    ui.fonts = 'PT Sans, serif'
    ui.googleFonts = ('PT Sans',)
    ui.portletWidth = ui.portletMinWidth = '250px'
    ui.portletPadding = '30px 20px 0 0'
    # Allow robots to read the site
    ui.images['robots.txt'] = 'Appiness'
    deploy = deploy.Config()

#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
try: # to import the site-specific configuration file
    import config
    config.complete(Config)
except ImportError:
    # The "config" module may not be present at maketime
    pass
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
