Added '../.blogthonrc' as possible configuration, added TODO
This commit is contained in:
parent
d26d49f03c
commit
af6f93cc1f
10
blogthon.cgi
10
blogthon.cgi
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user