Bugfix for tags #3
This commit is contained in:
parent
b1adf4b485
commit
9017fefc08
@ -152,8 +152,9 @@ if not os.path.exists(plugins_dir):
|
|||||||
if not os.path.exists("linklist"):
|
if not os.path.exists("linklist"):
|
||||||
errorpage("File \"linklist\" does not exist!")
|
errorpage("File \"linklist\" does not exist!")
|
||||||
|
|
||||||
if not os.path.exists(os.path.join(entries_dir, 'tags')) and tags == "True":
|
if not os.path.exists(os.path.join(entries_dir, 'tags')):
|
||||||
errorpage("You have to initialize your tags with <i>./blogthon.cgi -t</i> first!")
|
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
||||||
|
tagfile.close()
|
||||||
|
|
||||||
if language == "de":
|
if language == "de":
|
||||||
blog_locale = (
|
blog_locale = (
|
||||||
@ -239,9 +240,6 @@ if options.tags:
|
|||||||
for tag in taglist:
|
for tag in taglist:
|
||||||
tagindex.append([tag.strip(), entry])
|
tagindex.append([tag.strip(), entry])
|
||||||
content.close()
|
content.close()
|
||||||
if not os.path.exist(os.path.join(entries_dir, "tags"), "w"):
|
|
||||||
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
|
||||||
tagfile.close()
|
|
||||||
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
||||||
pickle.dump(tagindex, tagfile)
|
pickle.dump(tagindex, tagfile)
|
||||||
tagfile.close()
|
tagfile.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user