degal/settings.py
author Tero Marttila <terom@fixme.fi>
Thu, 11 Jun 2009 22:50:21 +0300
changeset 96 d9cf1e272e90
parent 44 533b7e8b5d3b
permissions -rw-r--r--
fix LazyProperty to not inherit from property, so as to act as a non-data descriptor, which can then be overriden by per-instance __dict__ values

"""
    XXX: settings, bad
"""

TEMPLATE_DIR = './templates'
TEMPLATE_EXT = 'html'

IMAGE_EXTS = ('jpg', 'jpeg', 'png', 'gif', 'bmp')

THUMB_DIR = 'thumbs'
PREVIEW_DIR = 'previews'
TITLE_FILE = 'title.txt'

THUMB_GEOM = (160, 120)
PREVIEW_GEOM = (640, 480)

DEFAULT_TITLE = 'Image gallery'

# how many image/page
IMAGE_COUNT = 50

VERSION = "0.5"
ROOT_IGNORE = ('lib', 'templates')