fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
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')
if __name__ == '__main__' :
print __file__