X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_pp.py;h=45b17aa766def132e9f07b3e32c0c26a7ab601b4;hb=729f76f6a7755c3858299dde32e609577d10363a;hp=9cd8ca1ab1fbbaf21b7577ae63e046295bffe342;hpb=0a1ae939e8f0d44591ec448cbc62b5fac0fbc5f3;p=phdru.name%2Fphdru.name.git diff --git a/phd_pp.py b/phd_pp.py index 9cd8ca1..45b17aa 100644 --- a/phd_pp.py +++ b/phd_pp.py @@ -92,6 +92,9 @@ class phd_pp(Template): %(img_name)s-thumbnail.jpg
800x600, 1024x800""" % {"img_name": img_name} + def google(self, query): + return "http://www.google.com/search?hl=en&ie=utf-8&oe=utf-8&q=%s" % quote_string(query) + def google_ru(self, query): return "http://www.google.ru/search?hl=ru&ie=utf-8&oe=utf-8&q=%s" % quote_string(query)