#!/usr/bin/env python
import os
from dm.cli.makeconfig import DomainConfigMaker

class ConfigMaker(DomainConfigMaker):

    template = """[DEFAULT]
# Base path (required, but only within some of the values below).
master_dir = /path/to/scanbooker

# Name of service.
service_name = My Scan Booker

# Images filesystem directory path.
images_dir = %(master_dir)s/var/images

# Skip sending email messages.
skip_sending_email = 1

[logging]
# Path to KForge log file (required).
log_file = %(master_dir)s/var/log/kforge.log
# Log level ERROR, WARNING, or INFO (default: ERROR).
#level = INFO

[db]
# When type is sqlite, set name to be a file path. Otherwise
# for postgres (and mysql) set a normal database name and
# set the user, password and host if necessary. (Required.)
type = sqlite
name = %(master_dir)s/var/sqlite.db
#user = scanbooker
#pass = 
#host = localhost

[memos]
# Enable memoization of access controller results (not enabled by default).
#enabled = on
# Maximum number of memos to store (default: 3000).
#limit = 3000
# Maximum time (seconds) validity of memos (default: 30).
#expire = 30

[django]
# Path to folder of template files (required).
templates_dir = %(master_dir)s/templates
# Secret to seed session key generation (default: not-a-secret).
#secret_key = make-yourself-a-new-secret-key 

[www]
# Path to folder with css, images, and scripts (required).
media_dir = %(master_dir)s/media
# Path to auto-generated Apache configuration file (required).
apache_config_file = %(master_dir)s/var/httpd-autogenerated.conf
# Shell command to reload Apache when config changes (default: blank).
#reload_apache = sudo /etc/init.d/apache2 restart

[email]
# Send notifications of changes to administrators (not enabled by default).
#notify_changes = on
# Email address for send of service emails (defaults to good guess).
#service_address = kforge-noreply@your.domain.com
# Socket for connections with SMTP server (default: localhost).
#smtp_host = localhost

[environment]
timezone = Europe/London
"""

if __name__ == '__main__':
    ConfigMaker()

