def _getAffiliationList(self, roomJID, affiliation):
    '\n        Send a request for an affiliation list in a room.\n        '

    def cb(response):
        stanza = AdminStanza.fromElement(response)
        return stanza.items
    request = AdminStanza(recipient=roomJID, stanzaType='get')
    request.items = [AdminItem(affiliation=affiliation)]
    d = self.request(request)
    d.addCallback(cb)
    return d
Send a request for an affiliation list in a room.
def _getAffiliationList(self, roomJID, affiliation):
    '\n        \n        '

    def cb(response):
        stanza = AdminStanza.fromElement(response)
        return stanza.items
    request = AdminStanza(recipient=roomJID, stanzaType='get')
    request.items = [AdminItem(affiliation=affiliation)]
    d = self.request(request)
    d.addCallback(cb)
    return d