From e0b73283707ea4d35a2c511435f1e2dbd5c747f7 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 28 Feb 2006 13:08:20 +0000 Subject: [PATCH] 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 --- reindex_blog.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 -- 2.39.5