def get_collection_titles_and_categories(collection_ids):
 collection_list = [(get_collection_from_model(e) if e else None) for e in collection_models.CollectionModel.get_multi(collection_ids)]
 result = {}
 for collection in collection_list:
  if (collection is None):
   logging.error('Could not find collection corresponding to id')
  else:
   result[collection.id] = {'title': collection.title, 'category': collection.category}
 return result

def get_collection_titles_and_categories ( collection_ids ) : collection_list = [ ( get_collection_from_model ( e ) if e else None ) for e in collection_models . CollectionModel . get_multi ( collection_ids ) ] result = { } for collection in collection_list : if ( collection is None ) : logging . error ( 'Could not find collection corresponding to id' ) else : result [ collection . id ] = { 'title' : collection . title , 'category' : collection . category } return result
returns collection titles and categories for the given ids .