--- a/config.py Sun Feb 15 23:55:48 2009 +0200
+++ b/config.py Mon Feb 16 00:52:20 2009 +0200
@@ -8,7 +8,6 @@
from log_source import LogSourceDecoder, LogDirectory
from log_formatter import IrssiFormatter, DebugFormatter
from channels import ChannelList
-import version
import log_formatter
# build relative paths to the dir containing this file
@@ -52,12 +51,11 @@
)
])
-# version stuff
+# URL to the hgweb installation for this code
HGWEB_URL = "http://hg.qmsk.net/irclogs2"
-VERSION_LINK = version.version_link_hg(HGWEB_URL, relpath("."))
-# Footer text to display
-HTML_FOOTER_TEXT = '<a href="http://projects.qmsk.net/irclogs2">irclogs2</a> version %s' % (VERSION_LINK)
+# path to the mercurial working copy containing this code
+HG_WC_PATH = relpath(".")
# how to handle decode() errors for logfile lines
LOG_SOURCE_DECODE_ERRORS = 'replace'
@@ -85,10 +83,14 @@
'debug': DebugFormatter,
}
+# Cookie settings
+PREF_COOKIE_PATH = '/'
+PREF_COOKIE_EXPIRE_SECONDS = 1 * 365 * 24 * 60 * 60 # one year
+
# default preferences
PREF_TIME_FMT_DEFAULT = '%H:%M:%S'
PREF_DATE_FMT_DEFAULT = '%Y-%m-%d'
-PREF_TIMEZONE_DEFAULT = pytz.utc
+PREF_TIMEZONE_FALLBACK = pytz.utc
PREF_FORMATTER_DEFAULT = IrssiFormatter
PREF_COUNT_DEFAULT = 200
PREF_COUNT_MAX = None