<s> """<STR_LIT>""" <EOL> from backend . decorators import required_roles , return_object , return_list , load , log <EOL> from rest_framework import viewsets <EOL> from rest_framework . permissions import IsAuthenticated <EOL> from ovs . dal . hybrids . group import Group <EOL> from ovs . dal . lists . grouplist import GroupList <EOL> class GroupViewSet ( viewsets . ViewSet ) : <EOL> """<STR_LIT>""" <EOL> permission_classes = ( IsAuthenticated , ) <EOL> prefix = r'<STR_LIT>' <EOL> base_name = '<STR_LIT>' <EOL> @ log ( ) <EOL> @ required_roles ( [ '<STR_LIT>' ] ) <EOL> @ return_list ( Group ) <EOL> @ load ( ) <EOL> def list ( self ) : <EOL> """<STR_LIT>""" <EOL> return GroupList . get_groups ( ) <EOL> @ log ( ) <EOL> @ required_roles ( [ '<STR_LIT>' ] ) <EOL> @ return_object ( Group ) <EOL> @ load ( Group ) <EOL> def retrieve ( self , group ) : <EOL> """<STR_LIT>""" <EOL> return group </s>
