parameters: (self)
docstring: show connection info
docstring_summary: show connection info
docstring_tokens: show connection info
function: def connection_info(self):
          """show connection info"""
  
          current_text = self.cmbConnectionsServices.currentText()
          key = '/MetaSearch/%s' % current_text
          self.catalog_url = self.settings.value('%s/url' % key)
          self.catalog_username = self.settings.value('%s/username' % key)
          self.catalog_password = self.settings.value('%s/password' % key)
          self.catalog_type = self.settings.value('%s/catalog-type' % key)
  
          # connect to the server
          if not self._get_catalog():
              return
  
          if self.catalog:  # display service metadata
              self.btnRawAPIResponse.setEnabled(True)
              metadata = render_template('en', self.context,
                                         self.catalog.conn,
                                         self.catalog.service_info_template)
              style = QgsApplication.reportStyleSheet()
              self.textMetadata.clear()
              self.textMetadata.document().setDefaultStyleSheet(style)
              self.textMetadata.setHtml(metadata)
  
              # clear results and disable buttons in Search tab
              self.clear_results()
function_tokens: def connection_info ( self ) : current_text = self . cmbConnectionsServices . currentText ( ) key = '/MetaSearch/%s' % current_text self . catalog_url = self . settings . value ( '%s/url' % key ) self . catalog_username = self . settings . value ( '%s/username' % key ) self . catalog_password = self . settings . value ( '%s/password' % key ) self . catalog_type = self . settings . value ( '%s/catalog-type' % key ) # connect to the server if not self . _get_catalog ( ) : return if self . catalog : # display service metadata self . btnRawAPIResponse . setEnabled ( True ) metadata = render_template ( 'en' , self . context , self . catalog . conn , self . catalog . service_info_template ) style = QgsApplication . reportStyleSheet ( ) self . textMetadata . clear ( ) self . textMetadata . document ( ) . setDefaultStyleSheet ( style ) self . textMetadata . setHtml ( metadata ) # clear results and disable buttons in Search tab self . clear_results ( )