def modifyAffiliationList(self, roomJID, entities, affiliation,
                                    sender=None):
        request = AdminStanza(recipient=roomJID, sender=sender,
                               stanzaType='set')
        request.items = [AdminItem(entity=entity, affiliation=affiliation)
                         for entity in entities]

        return self.request(request)
Modify an affiliation list.
dataset/ETHPy150Open ralphm/wokkel/wokkel/muc.py/MUCClientProtocol.modifyAffiliationList