Changeset b8941dc in orbit


Ignore:
Timestamp:
02/24/14 08:28:40 (7 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master
Children:
0d06822
Parents:
94c1d40
Message:
  • local help files
Location:
python/Puzzlebox/Orbit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/Puzzlebox/Orbit/Configuration.py

    r94c1d40 rb8941dc  
    6767PUZZLEBOX_FEEDBACK_URL = 'http://brainstorms.puzzlebox.info/contact_cgi.php' 
    6868 
    69 DEFAULT_HELP_URL = 'http://orbit.puzzlebox.info/development' 
     69#DEFAULT_HELP_URL = 'http://orbit.puzzlebox.info/development' 
     70DEFAULT_HELP_URL = 'path://docs/html/plugin-help-orbit/plugin-help-orbit.html' 
    7071 
    7172 
     
    102103 
    103104DEFAULT_ORBIT_SESSION_GRAPHIC = 'puzzlebox_orbit-flowchart.png' 
    104  
    105 DEFAULT_ORBIT_HELP_URL = 'https://orbit.puzzlebox.info/development' 
    106 #DEFAULT_ORBIT_HELP_URL = 'file://docs/html/plugin-help-orbit/plugin-help-orbit.html' 
     105DEFAULT_ORBIT_HELP_URL = 'path://docs/html/plugin-orbit/plugin-orbit.html' 
    107106 
    108107DEFAULT_ORBIT_POWER_MINIMUM = 60 
  • python/Puzzlebox/Orbit/Plugin_Orbit.py

    r1ad2c9e rb8941dc  
    276276                                                    axes_right_text='percent', \ 
    277277                                                    facecolor=windowBackgroundRGB) 
     278                 
     279                 
     280                # Help 
     281                url = self.configuration.DEFAULT_ORBIT_HELP_URL 
     282                if (url.startswith('path://')): 
     283                        url = "file://" + os.path.join( os.getcwd(), url.split('path://')[1] ) 
     284                 
     285                if self.DEBUG: 
     286                        print "[Jigsaw:Plugin_Orbit] loadWebURL:", 
     287                        print url 
     288                 
     289                self.webViewOrbit.load( QtCore.QUrl(url) ) 
    278290         
    279291         
     
    375387                self.parent.plugin_help.textLabelTitlePuzzleboxJigsaw.setText(ORBIT_LABEL_TITLE) 
    376388                self.parent.plugin_help.labelWebsiteAddress.setText(ORBIT_LABEL_HELP_WEB_ADDRESS) 
    377                 self.parent.plugin_help.loadWebURL(self.configuration.DEFAULT_ORBIT_HELP_URL) 
     389                self.parent.plugin_help.loadWebURL(self.parent.configuration.DEFAULT_HELP_URL) 
    378390         
    379391         
Note: See TracChangeset for help on using the changeset viewer.