''

def apply_method(self, r, **attr):

    if ((self.method == 'roles') and (r.tablename in (self.ENTITY_TYPES + ['pr_person']))):
        context = self.get_context_data(r, **attr)
    else:
        r.error(405, current.ERROR.BAD_METHOD)
    current.response.view = 'admin/manage_roles.html'
    return context
