Changeset 3405

Show
Ignore:
Timestamp:
09/27/07 06:21:52 (1 year ago)
Author:
ed
Message:

Removed the web update menu handling code, including the ShowWebUpdateMenu? property, as these are no longer needed, since the Web Update prefs are now part of the base PreferenceDialog? class.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/dApp.py

    r3366 r3405  
    827827 
    828828    def onEditPreferences(self, evt): 
    829         try: 
    830             self.ActiveForm.onEditPreferences(evt) 
    831         except: 
    832             if self.PreferenceDialogClass: 
    833                 dlgPref = self.PreferenceDialogClass() 
    834                 dlgPref.show() 
    835                 if dlgPref.Modal: 
    836                     dlgPref.release() 
    837             else: 
    838                 dabo.infoLog.write(_("Stub: dApp.onEditPreferences()")) 
     829        self.uiApp.onEditPreferences(evt) 
    839830 
    840831    # These handle MRU menu requests 
     
    851842         
    852843 
    853     def onWebUpdatePrefs(self, evt): 
    854         self.uiApp.onWebUpdatePrefs(evt) 
    855  
    856     def showWebUpdatePrefs(self): 
    857         self.onWebUpdatePrefs(None)      
    858          
    859844    def onHelpAbout(self, evt): 
    860845        about = self.AboutFormClass 
     
    11251110 
    11261111             
    1127     def _getShowWebUpdateMenu(self): 
    1128         v = getattr(self, "_showWebUpdateMenu", None) 
    1129         if v is None: 
    1130             v = self._showWebUpdateMenu = True 
    1131         return v 
    1132              
    1133     def _setShowWebUpdateMenu(self, val): 
    1134         self._showWebUpdateMenu = bool(val) 
    1135  
    1136  
    11371112    def _getUI(self): 
    11381113        try: 
     
    13041279            available in the base menu.""") ) 
    13051280 
    1306     ShowWebUpdateMenu = property(_getShowWebUpdateMenu, _setShowWebUpdateMenu, None,  
    1307             _("""Specifies whether the web update option is shown in the menu. 
    1308  
    1309             If True (the default), there will be a Web Update Options menu item in  
    1310             the Help menu. If False, your code can still start the Web Update Options 
    1311             screen by calling app.showWebUpdatePrefs() directly.""") ) 
    1312  
    13131281    UI = property(_getUI, _setUI, None, 
    13141282            _("""Specifies the user interface to load, or None. (str)