Changeset db41746 in sasview for src/sas


Ignore:
Timestamp:
Jun 5, 2015 9:52:39 AM (10 years ago)
Author:
Doucet, Mathieu <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
f06bbf5, f9250dc
Parents:
41eee5f
Message:

encode url

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/documentation_window.py

    r41eee5f rdb41746  
    33import wx 
    44import webbrowser 
     5import urllib 
    56 
    67wx_supports_html2 = True 
     
    2728 
    2829        file_path = os.path.join(docs_path, path) 
     30        url = "file://" + urllib.quote(file_path) 
    2931 
    3032        if not os.path.exists(file_path): 
     
    3436            # Complete HTML/CSS support! 
    3537            self.view = html.WebView.New(self) 
    36             self.view.LoadURL("file://" + file_path) 
     38            self.view.LoadURL(url) 
    3739            self.Show() 
    3840        else:  
     
    4244            #Red hat used at SNS for which Wx 3.0 is not available.  This 
    4345            #does not deal with issue of math in docs of course.  
    44             webbrowser.open_new_tab("file://" + file_path) 
     46            webbrowser.open_new_tab(url) 
    4547 
    4648def main(): 
Note: See TracChangeset for help on using the changeset viewer.