X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=reindex_blog.py;h=33e9077aefd0e6472959c3300d1f105ea59ef6b0;hb=3b607b20bbfbc5b8a2282d57b4c1f99f07f9d272;hp=645dd8289bbef52241c3fa8f79265074709d6460;hpb=e12ad79a4afa786eeaa2665dc1888b96e896a2b1;p=phdru.name%2Fphdru.name.git diff --git a/reindex_blog.py b/reindex_blog.py index 645dd82..33e9077 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -2,7 +2,7 @@ # -*- coding: koi8-r -*- __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2006-2013 PhiloSoft Design" +__copyright__ = "Copyright (C) 2006-2014 PhiloSoft Design" import sys, os @@ -352,7 +352,29 @@ new_text = ["""\ #def body_html

ôÅÇÉ

-

+

+æÏÒÍÁ ÐÏÉÓËÁ ÐÏÚ×ÏÌÑÅÔ ÉÓËÁÔØ ÓÏÏÂÝÅÎÉÑ × ÂÌÏÇÅ, ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ×ÙÒÁÖÅÎÉÀ. +óÉÎÔÁËÓÉÓ ×ÙÒÁÖÅÎÉÑ:

+ +

+ðÒÉÍÅÒÙ ×ÙÒÁÖÅÎÉÊ: linux - ÐÒÏÉÚÏÊÄ£Ô ÐÅÒÅÎÁÐÒÁ×ÌÅÎÉÅ +ÎÁ ÓÔÒÁÎÉÃÕ linux.html; linux&!audio - ÉÓËÁÔØ ÚÁÐÉÓÉ × ËÏÔÏÒÙÈ ÅÓÔØ ÔÅÇ +linux É ÎÅÔ ÔÅÇÁ audio; linux and not audio - ÔÏ ÖÅ ÓÁÍÏÅ. +

+ +
+
+ + +
+
+
"""] @@ -405,7 +427,6 @@ for i, (count, tag, links) in enumerate(all_tags): #def body_html

%s

-

-

#end def $phd_site.respond(self) """) @@ -430,7 +450,6 @@ $phd_site.respond(self) new_text.append("""\
-

#end def $phd_site.respond(self) """) @@ -544,7 +563,6 @@ for item in tuple(reversed(all_titles_tags))[:10]: item.categoryList = tags body = bodies[(year, month, day, file)] body = absolute_urls(body, baseURL + url_path) - body = body.decode('koi8-r').encode('utf-8') item.body = body item.excerpt = get_first_p(body)