From: robk-tahoe Date: Fri, 15 Feb 2008 03:12:58 +0000 (-0700) Subject: confwiz: update the config wiz to open the welcome page X-Git-Tag: allmydata-tahoe-0.8.0~42 X-Git-Url: https://git.rkrishnan.org/pf/reliability?a=commitdiff_plain;h=1def26c15dca90edfe501b0ab9321f5b0b98bde3;p=tahoe-lafs%2Ftahoe-lafs.git confwiz: update the config wiz to open the welcome page regardless of platform, the confwiz now opens the welcoe page upon writing a config. it also provides a 'plat' argument (from python's sys.platform) to help disambiguate our instructions by platform. --- diff --git a/src/allmydata/gui/confwiz.py b/src/allmydata/gui/confwiz.py index 3441c59d..7d3eb2cd 100644 --- a/src/allmydata/gui/confwiz.py +++ b/src/allmydata/gui/confwiz.py @@ -3,6 +3,7 @@ DEFAULT_SERVER_URL = 'https://beta.allmydata.com/' BACKEND = 'native_client.php' ACCOUNT_PAGE = 'account' +WELCOME_PAGE = 'welcome_install' TAHOESVC_NAME = 'Tahoe' WINFUSESVC_NAME = 'Allmydata Tahoe SMB' @@ -13,11 +14,12 @@ import sys import traceback import urllib2 from urllib import urlencode -#import webbrowser +import webbrowser import wx from allmydata.util.assertutil import precondition from allmydata import uri +import allmydata import amdicon @@ -153,6 +155,12 @@ class ConfWizApp(wx.App): def get_backend(self): return self.server + BACKEND + def open_welcome_page(self): + args = {'v': str(allmydata.__version__), + 'plat': sys.platform, + } + webbrowser.open(self.server + WELCOME_PAGE + '?' + urlencode(args)) + def OnInit(self): try: wx.InitAllImageHandlers() @@ -311,6 +319,8 @@ class LoginPanel(wx.Panel): configure(backend, user, passwd) maybe_start_services() + self.app.open_welcome_page() + # exit self.parent.parent.Close() @@ -454,6 +464,8 @@ class RegisterPanel(wx.Panel): configure(backend, user, passwd) maybe_start_services() + self.app.open_welcome_page() + # exit self.parent.parent.Close()