Preferences/ConfigurationPages/SecurityPage.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3010
befeff46ec0f
child 3058
0a02c433f52d
diff -r 9986ec0e559a -r 10516539f238 Preferences/ConfigurationPages/SecurityPage.py
--- a/Preferences/ConfigurationPages/SecurityPage.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Preferences/ConfigurationPages/SecurityPage.py	Fri Oct 18 23:00:41 2013 +0200
@@ -27,7 +27,8 @@
         """
         Constructor
         
-        @param configDialog reference to the configuration dialog (ConfigurationDialog)
+        @param configDialog reference to the configuration dialog
+            (ConfigurationDialog)
         """
         super(SecurityPage, self).__init__()
         self.setupUi(self)
@@ -63,7 +64,8 @@
             Preferences.setHelp("DnsPrefetchEnabled",
                 self.dnsPrefetchCheckBox.isChecked())
         
-        if self.__oldUseMasterPassword != self.masterPasswordCheckBox.isChecked():
+        if self.__oldUseMasterPassword != \
+                self.masterPasswordCheckBox.isChecked():
             self.__configDlg.masterPasswordChanged.emit("", self.__newPassword)
     
     @pyqtSlot(bool)
@@ -93,12 +95,14 @@
         Private slot to change the master password.
         """
         from .MasterPasswordEntryDialog import MasterPasswordEntryDialog
-        dlg = MasterPasswordEntryDialog(Preferences.getUser("MasterPassword"), self)
+        dlg = MasterPasswordEntryDialog(
+            Preferences.getUser("MasterPassword"), self)
         if dlg.exec_() == QDialog.Accepted:
             Preferences.setUser("MasterPassword",
                 dlg.getMasterPassword())
             
-            if self.__oldUseMasterPassword != self.masterPasswordCheckBox.isChecked():
+            if self.__oldUseMasterPassword != \
+                    self.masterPasswordCheckBox.isChecked():
                 # the user is about to change the use of a master password
                 # just save the changed password
                 self.__newPassword = dlg.getMasterPassword()
@@ -112,6 +116,7 @@
     Module function to create the configuration page.
     
     @param dlg reference to the configuration dialog
+    @return reference to the instantiated page (ConfigurationPageBase)
     """
     page = SecurityPage(dlg)
     return page

eric ide

mercurial