Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2009-04-03 12:34:22 (GMT)
committer Simon Schampijer <simon@schampijer.de>2009-04-03 12:34:22 (GMT)
commitba2307c8437ca8e0c77fffed06009158ad3d48f2 (patch)
tree0d633cc75b83e08ca7e6011fdfddd5101e420132 /webactivity.py
parent60d55acc69c50e6b7d3708a53d49e00098ab48ff (diff)
Add a static web-page #645
Diffstat (limited to 'webactivity.py')
-rw-r--r--webactivity.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/webactivity.py b/webactivity.py
index bb0cd8d..5b1be7d 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -357,7 +357,9 @@ class WebActivity(activity.Activity):
if os.path.isfile(_LIBRARY_PATH):
self._browser.load_uri('file://' + _LIBRARY_PATH)
else:
- self._browser.load_uri('http://sugarlabs.org')
+ default_page = os.path.join(activity.get_bundle_path(),
+ "data/index.html")
+ self._browser.load_uri(default_page)
def _session_history_changed_cb(self, session_history, link):
_logger.debug('NewPage: %s.' %link)