#NEWLINE# def has_required_roles( self , required_roles ) : #NEWLINE# #INDENT# 'Return `True` if this role satisfies the specified roles.\n\n        The specified arguments are the set of role requirements\n        (class objects).  This role (an instance) must satisfy *every*\n        specified requirement.  Every requirement is either a class\n        object (subclass of :class:`<UserRole>`) or a tuple thereof.\n\n        ' #NEWLINE# check_required_roles ( required_roles , 'code' ) #NEWLINE# for rr in required_roles : #NEWLINE# #INDENT# if ( not isinstance ( self , rr ) ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True