parameters: (self)
docstring: populate connections list from settings
docstring_summary: populate connections list from settings
docstring_tokens: populate connections list from settings
function: def populate(self):
          """populate connections list from settings"""
  
          if self.mode == 0:
              self.settings.beginGroup('/MetaSearch/')
              keys = self.settings.childGroups()
              for key in keys:
                  item = QListWidgetItem(self.listConnections)
                  item.setText(key)
              self.settings.endGroup()
  
          else:  # populate connections list from file
              doc = get_connections_from_file(self, self.filename)
              if doc is None:
                  self.filename = None
                  self.leFileName.clear()
                  self.listConnections.clear()
                  return
  
              for catalog in doc.findall('csw'):
                  item = QListWidgetItem(self.listConnections)
                  item.setText(catalog.attrib.get('name'))
function_tokens: def populate ( self ) : if self . mode == 0 : self . settings . beginGroup ( '/MetaSearch/' ) keys = self . settings . childGroups ( ) for key in keys : item = QListWidgetItem ( self . listConnections ) item . setText ( key ) self . settings . endGroup ( ) else : # populate connections list from file doc = get_connections_from_file ( self , self . filename ) if doc is None : self . filename = None self . leFileName . clear ( ) self . listConnections . clear ( ) return for catalog in doc . findall ( 'csw' ) : item = QListWidgetItem ( self . listConnections ) item . setText ( catalog . attrib . get ( 'name' ) )