#NEWLINE# def setupEntitlement( self , repos , group , ent , reposLabel , troves , label , onDisk = True , withClass = False ) : #NEWLINE# #INDENT# repos . addRole ( reposLabel , group ) #NEWLINE# repos . addAcl ( reposLabel , group , troves , label , False , False ) #NEWLINE# repos . setRoleCanMirror ( reposLabel , group , True ) #NEWLINE# repos . addEntitlementClass ( 'localhost' , group , label ) #NEWLINE# repos . addEntitlementKeys ( 'localhost' , group , [ ent ] ) #NEWLINE# client = self . getEntitlementClient ( [ ( 'localhost' , group , ent ) ] , onDisk = onDisk , withClass = withClass ) #NEWLINE# return ( client . getRepos ( ) , client )