diff options
author | Stefan Ritter <xeno@thehappy.de> | 2010-11-20 20:01:08 +0100 |
---|---|---|
committer | Stefan Ritter <xeno@thehappy.de> | 2010-11-20 20:01:08 +0100 |
commit | f449c222815dc6b33cf59b8f7bf36d3c2a17b2e9 (patch) | |
tree | 6a260249cabe79589c6e12b3dc31cdaa13e8ca21 | |
parent | 65750101575642ff696c396fbad5ee1741e5878e (diff) |
* Some code cleanup
* First code for moderated comments
Diffstat (limited to '')
-rwxr-xr-x | blogthon.cgi | 6 | ||||
-rw-r--r-- | configuration | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index f883bea..215c7fd 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -16,13 +16,13 @@ # * Complete Atom Feed (like RSS) # * Fix broken charset in outgoing mails (needs some testing) -from ConfigParser import ConfigParser import os import sys import time import locale import re -import cgi +from ConfigParser import ConfigParser +from cgi import FieldStorage from smtplib import SMTP from md5 import new as newmd5 from glob import glob @@ -173,7 +173,7 @@ try: feed_preview = configuration.get('feed', 'feed_preview') except: errorpage('"feed_preview" is missing or empty in configuration!') # Read POST Variables -action = cgi.FieldStorage() +action = FieldStorage() month_display = action.getvalue('m') static_display = action.getvalue('s') diff --git a/configuration b/configuration index 8f7a91e..b8eb7a3 100644 --- a/configuration +++ b/configuration @@ -16,7 +16,8 @@ staticpages: True monthlist: True linklist: True permalinks: True -comments: True +comments: True +comments_moderated: False newest_first: True [smtp] |