def modifyAffiliationList(self, roomJID, entities, affiliation, sender=None):
    '\n        Modify an affiliation list.\n\n        @param roomJID: The bare JID of the room.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param entities: The list of entities to change for a room.\n        @type entities: C{list} of\n            L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param affiliation: The affilation to the entities will acquire.\n        @type affiliation: C{unicode}\n\n        @param sender: The entity sending the request.\n        @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        '
    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.

@param roomJID: The bare JID of the room.
@type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}

@param entities: The list of entities to change for a room.
@type entities: C{list} of
    L{JID<twisted.words.protocols.jabber.jid.JID>}

@param affiliation: The affilation to the entities will acquire.
@type affiliation: C{unicode}

@param sender: The entity sending the request.
@type sender: L{JID<twisted.words.protocols.jabber.jid.JID>}
def modifyAffiliationList(self, roomJID, entities, affiliation, sender=None):
    '\n        Modify an affiliation list.\n\n        @param roomJID: The bare JID of the room.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param entities: The list of entities to change for a room.\n        @type entities: C{list} of\n            L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param affiliation: The affilation to the entities will acquire.\n        @type affiliation: C{unicode}\n\n        @param sender: The entity sending the request.\n        @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        '
    request = AdminStanza(recipient=roomJID, sender=sender, stanzaType='set')
    request.items = [AdminItem(entity=entity, affiliation=affiliation) for entity in entities]
    return self.request(request)