def change_encrypt_method(self, widget=None):
     """ Load all the entries for a given encryption method. """
     for z in self.vbox_encrypt_info:
         z.destroy()
     ID = self.combo_encryption.get_active()
     methods = misc.LoadEncryptionMethods()
     self.encryption_info = {}
     if ID == -1:
         self.combo_encryption.set_active(0)
         ID = 0
     opts = methods[ID][2]
     for x in opts:
         box = None
         if language.has_key(opts[x][0]):
             box = LabelEntry(language[opts[x][0].lower().replace(' ','_')])
         else:
             box = LabelEntry(opts[x][0].replace('_',' '))
         box.set_auto_hidden(True)
         self.vbox_encrypt_info.pack_start(box)
         self.encryption_info[opts[x][1]] = box.entry
         box.entry.set_text(noneToBlankString(
             wireless.GetWirelessProperty(self.networkID, opts[x][1])))
     self.vbox_encrypt_info.show_all()
 def format_entry(self, networkid, label):
     """ Helper method for fetching/formatting wireless properties. """
     return noneToBlankString(wireless.GetWirelessProperty(networkid, label))
 def format_entry(self, label):
     """ Help method for fetching/formatting wired properties. """
     return noneToBlankString(wired.GetWiredProperty(label))
 def format_entry(self, label):
     """ Helper method to fetch and format wired properties. """
     return noneToBlankString(wired.GetWiredProperty(label))