Logo Search packages:      
Sourcecode: wicd version File versions

def wicd::gui::appGui::check_encryption_valid (   self,
  networkid,
  entry 
)

Make sure that encryption settings are properly filled in. 

Definition at line 1951 of file gui.py.

01951                                                       :
        """ Make sure that encryption settings are properly filled in. """
        # Make sure no entries are left blank
        if entry.chkbox_encryption.get_active():
            encryption_info = entry.encryption_info
            for x in encryption_info:
                if encryption_info[x].get_text() == "":
                    error(self.window, language['encrypt_info_missing'])
                    return False
        # Make sure the checkbox is checked when it should be
        elif not entry.chkbox_encryption.get_active() and \
             wireless.GetWirelessProperty(networkid, "encryption"):
            error(self.window, language['enable_encryption'])
            return False
        return True

    def connect(self, widget, event, nettype, networkid, networkentry):


Generated by  Doxygen 1.6.0   Back to index