# HG changeset patch # User Tero Marttila # Date 1244232150 -10800 # Node ID 01220ae43902a7dbcc4d9d0b485f53f2f4ff96db # Parent 322e5cd0cb1f020e968e264517bb046e2d0ea16f add log_level config setting diff -r 322e5cd0cb1f -r 01220ae43902 degal/config.py --- a/degal/config.py Fri Jun 05 23:00:38 2009 +0300 +++ b/degal/config.py Fri Jun 05 23:02:30 2009 +0300 @@ -2,14 +2,24 @@ Configuration """ +import logging + class Configuration (object) : """ Various configuration settings """ + ## runtime settings + + # do not modify anything + read_only = False # the path to the gallery gallery_path = "." + # minimum logging level + log_level = logging.INFO + + ## detailed configuration # the name of the gallery gallery_title = "Image Gallery" @@ -45,11 +55,6 @@ ("FocalLength", "Focal length" ) ] - ## runtime settings - - # do not modify anything - read_only = False - ### functions def is_image (self, file) :