From 728ee7d2772f457d726a6b4d1dcfde9242187de4 Mon Sep 17 00:00:00 2001
From: Stefan Ritter
'
if comments == "True":
- if not glob.glob(entries_dir + title + '.comments'):
+ comments_file = glob.glob(entries_dir + title + '.comments')
+ print str(comments_file)
+ if not comments_file:
print '
'
else:
+ comments_content = open(comments_file[0], "r")
+ comments_counter = 0
+ for line in comments_content:
+ if line.split(".", 1)[0] == "-": comments_counter += 1
print '
'
+ comments_content.close()
print '
- no comments
' print '