From: Oleg Broytman Date: Tue, 28 Feb 2006 13:08:20 +0000 (+0000) Subject: Add an advice to not to edit the autogenerated index templates. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=e0b73283707ea4d35a2c511435f1e2dbd5c747f7;p=phdru.name%2Fphdru.name.git Add an advice to not to edit the autogenerated index templates. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@8 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/reindex_blog.py b/reindex_blog.py index 7612c02..67461c0 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -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