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
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
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