From 1def26c15dca90edfe501b0ab9321f5b0b98bde3 Mon Sep 17 00:00:00 2001 From: robk-tahoe Date: Thu, 14 Feb 2008 20:12:58 -0700 Subject: [PATCH] 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. --- src/allmydata/gui/confwiz.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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() -- 2.45.2