diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2010-12-19 04:21:25 (GMT) |
---|---|---|
committer | Martin Langhoff <martin@laptop.org> | 2010-12-20 15:40:46 (GMT) |
commit | 7282172182de64b3a409e924f2acaff40238eaf1 (patch) | |
tree | 9cb612183297fe192118be071f03563b60f9d32a | |
parent | 0fd3e4ea0c9f47a727b778bcf52890cc1d5f2ab9 (diff) |
Overwrite method _load_homepage in the activity to load the wikipedia home page
-rw-r--r-- | activity.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activity.py b/activity.py index 913da3a..6eed390 100644 --- a/activity.py +++ b/activity.py @@ -68,3 +68,7 @@ class WikipediaActivity(webactivity.WebActivity): # WTB: Hacked to use hardcoded Spanish localization for WikiBrowse release. self.toolbox.add_toolbar('Buscar', self.searchtoolbar) self.searchtoolbar.show() + + def _load_homepage(self): + home_url = 'http://localhost:%s%s' % (self.HTTP_PORT, HOME_PAGE) + self._browser.load_uri(home_url) |