]> git.llucax.com Git - software/blitiri.git/commitdiff
Add a configuration option to enable the comments support
authorLeandro Lucarella <llucax@gmail.com>
Thu, 7 Aug 2008 01:51:50 +0000 (22:51 -0300)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Fri, 8 Aug 2008 22:53:20 +0000 (19:53 -0300)
blitiri.cgi
config.py.sample

index 583a497687a62f3f9f46b9e0b16b8b152ef1e557..161449a1f73abbc961851d88d851434c2aa77679 100755 (executable)
@@ -14,6 +14,9 @@
 # Directory where entries are stored
 data_path = "/tmp/blog/data"
 
+# Are comments allowed? (if False, comments_path option is not used)
+enable_comments = False
+
 # Directory where comments are stored (must be writeable by the web server)
 comments_path = "/tmp/blog/comments"
 
@@ -820,7 +823,7 @@ def handle_cgi():
        elif style:
                render_style()
        elif post:
-               render_html( [db.get_article(uuid)], db, year, True )
+               render_html( [db.get_article(uuid)], db, year, enable_comments )
        elif artlist:
                articles = db.get_articles()
                articles.sort(cmp = Article.title_cmp)
index f145a3e3d0af1d1af1bd464ac63faf60ff4cafac..1f2c4eac0f1f68f84eb7e8029aa3be3ee22b941d 100644 (file)
@@ -10,6 +10,9 @@
 # Directory where entries are stored
 data_path = "/tmp/blog/data"
 
+# Are comments allowed? (if False, comments_path option is not used)
+enable_comments = False
+
 # Directory where comments are stored (must be writeable by the web server)
 comments_path = "/tmp/blog/comments"