aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-12-06 20:35:52 +0100
committerStefan Ritter <xeno@thehappy.de>2009-12-06 20:35:52 +0100
commitaf6f93cc1f0b99c7d2d0f651cd4d0c2328ad9f20 (patch)
tree3168d9c88f9f9260d711e989df61d0a1e679a58b
parentd26d49f03c6fcf9b80d0a512fe0a3eab05834d71 (diff)
Added '../.blogthonrc' as possible configuration, added TODO
-rwxr-xr-xblogthon.cgi10
1 files changed, 9 insertions, 1 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index fe746fb..a648abe 100755
--- a/blogthon.cgi
+++ b/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: