BACKEND = 'native_client.php'
ACCOUNT_PAGE = 'account'
+WELCOME_PAGE = 'welcome_install'
TAHOESVC_NAME = 'Tahoe'
WINFUSESVC_NAME = 'Allmydata Tahoe SMB'
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
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()
configure(backend, user, passwd)
maybe_start_services()
+ self.app.open_welcome_page()
+
# exit
self.parent.parent.Close()
configure(backend, user, passwd)
maybe_start_services()
+ self.app.open_welcome_page()
+
# exit
self.parent.parent.Close()