]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Added English Google.
authorOleg Broytman <phd@phdru.name>
Mon, 19 May 2008 15:32:05 +0000 (15:32 +0000)
committerOleg Broytman <phd@phdru.name>
Mon, 19 May 2008 15:32:05 +0000 (15:32 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@76 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

phd_pp.py

index 9cd8ca1ab1fbbaf21b7577ae63e046295bffe342..45b17aa766def132e9f07b3e32c0c26a7ab601b4 100644 (file)
--- a/phd_pp.py
+++ b/phd_pp.py
@@ -92,6 +92,9 @@ class phd_pp(Template):
 <img src="%(img_name)s-thumbnail.jpg" alt="%(img_name)s-thumbnail.jpg" /><br />
 <a href="%(img_name)s-800x600.jpg">800x600</a>, <a href="%(img_name)s-1024x800.jpg">1024x800</a>""" % {"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)