From 729f76f6a7755c3858299dde32e609577d10363a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 19 May 2008 15:32:05 +0000 Subject: [PATCH] Added English Google. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@76 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- phd_pp.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.39.5