Added '../.blogthonrc' as possible configuration, added TODO

This commit is contained in:
Stefan Ritter 2009-12-06 20:35:52 +01:00
parent d26d49f03c
commit af6f93cc1f

View File

@ -12,6 +12,12 @@
# Pascal Turbing <pascal@turbing.de>
# Description: A simple blogging software
# TODO:
# * Complete Atom Feed (like RSS)
# * Write documentation
# * Fix send-comment bug when using lighttpd
# * Fix broken charset in outgoing mails (needs some testing)
import cgi, os, time, glob, re, md5, sys, random, smtplib
import ConfigParser
@ -56,9 +62,11 @@ def document_header(string):
configuration = ConfigParser.ConfigParser()
# First look for ../blogthonrc and then for ./configuration
# Look for a configuration:
if os.path.exists('../blogthonrc'):
configuration.read('../blogthonrc')
elif os.path.exists('../.blogthonrc'):
configuration.read('../.blogthonrc')
elif os.path.exists('configuration'):
configuration.read('configuration')
else: