code: def get_ids_with_prefix(portal_type, prefix):
      
      brains = search_by_prefix(portal_type, prefix)
      ids = map(api.get_id, brains)
      return ids
docs: Return a list of ids sharing the same portal type and prefix