Another Bugfix

This commit is contained in:
Stefan Ritter 2009-05-18 21:46:32 +02:00
parent b4e537868b
commit 6cbd67cdb9

View File

@ -303,7 +303,6 @@ else:
print ' <div class="entry_border_right"></div>' print ' <div class="entry_border_right"></div>'
print ' <div class="entry_border_top"></div>' print ' <div class="entry_border_top"></div>'
print ' <div class="entry_border_bottom"></div>' print ' <div class="entry_border_bottom"></div>'
print ' </div>'
content.close() content.close()
# Entry # Entry
else: else:
@ -333,7 +332,6 @@ else:
print ' <div class="entry_border_right"></div>' print ' <div class="entry_border_right"></div>'
print ' <div class="entry_border_top"></div>' print ' <div class="entry_border_top"></div>'
print ' <div class="entry_border_bottom"></div>' print ' <div class="entry_border_bottom"></div>'
print ' </div>'
# Comments... # Comments...
# ... are shown when post_display and comments_file isn't false # ... are shown when post_display and comments_file isn't false
@ -342,7 +340,7 @@ else:
if comments_file: if comments_file:
comments_file = glob.glob(entries_dir + title + '.comments') comments_file = glob.glob(entries_dir + title + '.comments')
comments_content = open(comments_file[0], "r") comments_content = open(comments_file[0], "r")
print '' print ' </div>'
print ' </div>' print ' </div>'
print '' print ''
print ' <div class="comments">' print ' <div class="comments">'
@ -358,6 +356,9 @@ else:
print ' </div>' print ' </div>'
print '' print ''
comments_content.close() comments_content.close()
else:
print ' </div>'
print ''
# Form for adding comments # Form for adding comments
random_int_a = random.randint(1,9) random_int_a = random.randint(1,9)
@ -371,7 +372,6 @@ else:
print ' <br /><label for="cquiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input type="text" id="cquiz" name="cquiz" />' print ' <br /><label for="cquiz">' + str(random_int_a) + '+' + str(random_int_b) + '=</label><input type="text" id="cquiz" name="cquiz" />'
print ' <br /><input type="submit" id="submit" value="post comment" />' print ' <br /><input type="submit" id="submit" value="post comment" />'
print ' </form>' print ' </form>'
print ''
if comments == "True": if comments == "True":
comments_file = glob.glob(entries_dir + title + '.comments') comments_file = glob.glob(entries_dir + title + '.comments')