]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Add an advice to not to edit the autogenerated index templates.
authorOleg Broytman <phd@phdru.name>
Tue, 28 Feb 2006 13:08:20 +0000 (13:08 +0000)
committerOleg Broytman <phd@phdru.name>
Tue, 28 Feb 2006 13:08:20 +0000 (13:08 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@8 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

reindex_blog.py

index 7612c024a9c4686452ae399a342ae58e69ab889b..67461c0a89d5ee65ad3f5d47856d6b9900939e6f 100755 (executable)
@@ -96,10 +96,14 @@ def write_template(year, month, titles):
    show_year = not year
    show_month = not month
 
-   if show_year:
-      new_text.append("""\
+   new_text.append("""\
+## THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
 #extends phd_pp_ru
 #implements respond
+""")
+
+   if show_year:
+      new_text.append("""\
 #attr $Title = "Oleg BroytMann's blog"
 #attr $Description = "BroytMann Russian Blog Index Document"
 #attr $Copyright = %(cyear)s
@@ -111,8 +115,6 @@ def write_template(year, month, titles):
    elif show_month:
 
       new_text.append("""\
-#extends phd_pp_ru
-#implements respond
 #attr $Title = "Oleg BroytMann's blog: %(year)s"
 #attr $Description = "BroytMann Russian Blog %(year)s Index Document"
 #attr $Copyright = %(cyear)s
@@ -125,8 +127,6 @@ def write_template(year, month, titles):
 
       month = int(month)
       new_text.append("""\
-#extends phd_pp_ru
-#implements respond
 #attr $Title = "Oleg BroytMann's blog: %(month_abbr_en)s %(year)s"
 #attr $Description = "BroytMann Russian Blog %(month_name_en)s %(year)s Index Document"
 #attr $Copyright = %(cyear)s