<s> from grouper . fe . util import GrouperHandler <EOL> from grouper . permissions import enable_permission_auditing , NoSuchPermission <EOL> class PermissionEnableAuditing ( GrouperHandler ) : <EOL> def post ( self , name = None ) : <EOL> if not self . current_user . permission_admin : <EOL> return self . forbidden ( ) <EOL> try : <EOL> enable_permission_auditing ( self . session , name , self . current_user . id ) <EOL> except NoSuchPermission : <EOL> return self . notfound ( ) <EOL> return self . redirect ( "<STR_LIT>" . format ( name ) ) </s>
