@require_collection_playable
def get(self, collection_id):
    'Handles GET requests.'
    try:
        collection = collection_services.get_collection_by_id(collection_id)
    except Exception as e:
        raise self.PageNotFoundException(e)
    whitelisted_usernames = config_domain.WHITELISTED_COLLECTION_EDITOR_USERNAMES.value
    self.values.update({'can_edit': (bool(self.username) and (self.username in whitelisted_usernames) and (self.username not in config_domain.BANNED_USERNAMES.value) and rights_manager.Actor(self.user_id).can_edit(rights_manager.ACTIVITY_TYPE_COLLECTION, collection_id)), 'is_logged_in': bool(self.user_id), 'collection_id': collection_id, 'collection_title': collection.title, 'collection_skills': collection.skills, 'is_private': rights_manager.is_collection_private(collection_id), 'meta_name': collection.title, 'meta_description': utils.capitalize_string(collection.objective)})
    self.render_template('collection_player/collection_player.html')
Handles GET requests.
@require_collection_playable
def get(self, collection_id):
    
    try:
        collection = collection_services.get_collection_by_id(collection_id)
    except Exception as e:
        raise self.PageNotFoundException(e)
    whitelisted_usernames = config_domain.WHITELISTED_COLLECTION_EDITOR_USERNAMES.value
    self.values.update({'can_edit': (bool(self.username) and (self.username in whitelisted_usernames) and (self.username not in config_domain.BANNED_USERNAMES.value) and rights_manager.Actor(self.user_id).can_edit(rights_manager.ACTIVITY_TYPE_COLLECTION, collection_id)), 'is_logged_in': bool(self.user_id), 'collection_id': collection_id, 'collection_title': collection.title, 'collection_skills': collection.skills, 'is_private': rights_manager.is_collection_private(collection_id), 'meta_name': collection.title, 'meta_description': utils.capitalize_string(collection.objective)})
    self.render_template('collection_player/collection_player.html')