parameters: (self)
return_statement: return db_to_publish_info_dct
docstring: Builds a dictionary mapping a database ID to a publish info list.
  
      Returns:
        dictionary mapping a database ID to a publish info list -
        {db_id: [(vh_name, target_path, serve_wms),]}
docstring_summary: Builds a dictionary mapping a database ID to a publish info list.
docstring_tokens: Builds a dictionary mapping a database ID to a publish info list .
function: def _GetDbIdToPublishInfoDict(self):
      """Builds a dictionary mapping a database ID to a publish info list.
  
      Returns:
        dictionary mapping a database ID to a publish info list -
        {db_id: [(vh_name, target_path, serve_wms),]}
      """
      # Get (db_id, target paths, virtual_host) tuples for all published dbs.
      query_db_target = (
          "SELECT target_db_table.db_id,"
          " virtual_host_table.virtual_host_name,"
          " target_table.target_path, target_table.serve_wms,"
          " target_db_table.publish_context_id"
          " FROM target_db_table, target_table, virtual_host_table"
          " WHERE target_table.target_id = target_db_table.target_id AND"
          " virtual_host_table.virtual_host_id = target_db_table.virtual_host_id")
      results = self.DbQuery(query_db_target)
  
      # Build a dictionary.
      db_to_publish_info_dct = dict(
          (db_id, []) for (db_id, unused_vh_name, unused_target_path,
                           unused_serve_wms, unused_default_db) in results)
      for db_id, vh_name, target_path, serve_wms, publish_context_id in results:
        default_database = self.IsDefaultDatabase(publish_context_id)
        db_to_publish_info_dct[db_id].append(
            (vh_name, target_path, serve_wms, default_database))
  
      return db_to_publish_info_dct
function_tokens: def _GetDbIdToPublishInfoDict ( self ) : # Get (db_id, target paths, virtual_host) tuples for all published dbs. query_db_target = ( "SELECT target_db_table.db_id," " virtual_host_table.virtual_host_name," " target_table.target_path, target_table.serve_wms," " target_db_table.publish_context_id" " FROM target_db_table, target_table, virtual_host_table" " WHERE target_table.target_id = target_db_table.target_id AND" " virtual_host_table.virtual_host_id = target_db_table.virtual_host_id" ) results = self . DbQuery ( query_db_target ) # Build a dictionary. db_to_publish_info_dct = dict ( ( db_id , [ ] ) for ( db_id , unused_vh_name , unused_target_path , unused_serve_wms , unused_default_db ) in results ) for db_id , vh_name , target_path , serve_wms , publish_context_id in results : default_database = self . IsDefaultDatabase ( publish_context_id ) db_to_publish_info_dct [ db_id ] . append ( ( vh_name , target_path , serve_wms , default_database ) ) return db_to_publish_info_dct