Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/activity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2010-12-17 20:34:31 (GMT)
committer Martin Langhoff <martin@laptop.org>2010-12-20 15:42:04 (GMT)
commit10bf2a861c51904d88d72c3ccd2bf42e0aeec720 (patch)
treeab8a41d11646f047edd026a36ce94f157af3b6b0 /activity.py
parent7282172182de64b3a409e924f2acaff40238eaf1 (diff)
Use the setting in activity.py to the port in the search toolbar
Diffstat (limited to 'activity.py')
-rw-r--r--activity.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/activity.py b/activity.py
index 6eed390..924ff86 100644
--- a/activity.py
+++ b/activity.py
@@ -30,7 +30,6 @@ import webactivity
from searchtoolbar import SearchToolbar
# Default settings.
-HTTP_PORT = '8000'
WIKIDB = 'es_PE/es_PE.xml.bz2'
HOME_PAGE = '/static/'
@@ -41,12 +40,13 @@ class WikipediaActivity(webactivity.WebActivity):
print "Starting server...\n"
os.chdir(os.environ['SUGAR_BUNDLE_PATH'])
-
+
+ self.HTTP_PORT = '8000'
server.load_db(WIKIDB)
server.run_server({ 'path': WIKIDB,
- 'port': int(HTTP_PORT) })
+ 'port': int(self.HTTP_PORT) })
- handle.uri = 'http://localhost:%s%s' % (HTTP_PORT, HOME_PAGE)
+ handle.uri = 'http://localhost:%s%s' % (self.HTTP_PORT, HOME_PAGE)
webactivity.WebActivity.__init__(self, handle)