Exemple #1
0
 def apply(self):
     # also set changes to the global value
     (h, p) = self._getHostPortFromUI()
     proxy = ZHttpProxyConfiguration()
     proxy.setEnable( self.enableCB.GetValue() )
     proxy.setHost( h )
     port = 8080
     try:
         port  = int( p )
     except:
         pass
     proxy.setPort( port )
     proxy.setProxyAuthorization( getSafeString(self.usernameTxt.GetValue()), getSafeString(self.passwordTxt.GetValue()) )
     return ZApplicationPreferencesPrefPage.apply(self)
Exemple #2
0
 def apply(self):
     ZShowInfoMessage(self, _extstr(u"trayprefpage.RequiredRestartMessage"), _extstr(u"trayprefpage.RequiredRestartTitle")) #$NON-NLS-2$ #$NON-NLS-1$
     return ZApplicationPreferencesPrefPage.apply(self)
Exemple #3
0
 def apply(self):
     ZShowInfoMessage(self, _extstr(u"trayprefpage.RequiredRestartMessage"),
                      _extstr(u"trayprefpage.RequiredRestartTitle")
                      )  #$NON-NLS-2$ #$NON-NLS-1$
     return ZApplicationPreferencesPrefPage.apply(self)
 def apply(self):
     return ZApplicationPreferencesPrefPage.apply(self)
Exemple #5
0
 def apply(self):
     return ZApplicationPreferencesPrefPage.apply(self)