From: Oleg Broytman Date: Mon, 19 May 2008 15:32:05 +0000 (+0000) Subject: Added English Google. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=729f76f6a7755c3858299dde32e609577d10363a;p=phdru.name%2Fphdru.name.git Added English Google. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@76 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- 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)