def get(self, collection_id):
    'Populates the data on the individual collection page.'
    allow_invalid_explorations = bool(self.request.get('allow_invalid_explorations'))
    try:
        collection_dict = collection_services.get_learner_collection_dict_by_id(collection_id, self.user_id, allow_invalid_explorations=allow_invalid_explorations)
    except Exception as e:
        raise self.PageNotFoundException(e)
    self.values.update({'can_edit': (self.user_id and rights_manager.Actor(self.user_id).can_edit(rights_manager.ACTIVITY_TYPE_COLLECTION, collection_id)), 'collection': collection_dict, 'info_card_image_url': utils.get_info_card_url_for_category(collection_dict['category']), 'is_logged_in': bool(self.user_id), 'session_id': utils.generate_new_session_id()})
    self.render_json(self.values)
Populates the data on the individual collection page.
def get(self, collection_id):
    
    allow_invalid_explorations = bool(self.request.get('allow_invalid_explorations'))
    try:
        collection_dict = collection_services.get_learner_collection_dict_by_id(collection_id, self.user_id, allow_invalid_explorations=allow_invalid_explorations)
    except Exception as e:
        raise self.PageNotFoundException(e)
    self.values.update({'can_edit': (self.user_id and rights_manager.Actor(self.user_id).can_edit(rights_manager.ACTIVITY_TYPE_COLLECTION, collection_id)), 'collection': collection_dict, 'info_card_image_url': utils.get_info_card_url_for_category(collection_dict['category']), 'is_logged_in': bool(self.user_id), 'session_id': utils.generate_new_session_id()})
    self.render_json(self.values)