import sys, os
-blog_filename = sys.argv[1]
+blog_data_root = sys.argv[1]
blog_root = sys.argv[2]
+blog_filename = os.path.join(blog_data_root, "blog_dict.pickle")
try:
import cPickle as pickle
#attr $Copyright = %(cyear)s
##
#def body_html
-<H1>Журнал: %(day)d %(month_name_ru0)s %(year)s</H1>
+<H1>Журнал: %(day)d %(month_name_ru)s %(year)s</H1>
""" % {
"year": year, "cyear": year or 2005,
"month_abbr_en": months_abbrs_en[imonth], "month_name_en": months_names_en[imonth],
- "month_name_ru0": months_names_ru0[imonth],
+ "month_name_ru": months_names_ru[imonth],
"day": iday
})
from rss_20 import rss_20
from news import NewsItem
-baseURL = "http://phd.pp.ru/Russian/blog/"
+baseURL = "http://phd.pp.ru/" + blog_root
items = []
for item in tuple(reversed(all_titles_tags))[:10]:
export LC_TIME
cd ../htdocs/phd.pp.ru && \
-exec ../../phd.pp.ru/reindex_blog.py ../../phd.pp.ru/blog_ru Russian/blog
+exec ../../phd.pp.ru/reindex_blog.py ../../phd.pp.ru/ru Russian/blog