Ignore:
Timestamp:
Aug 15, 2011, 9:35:16 AM (9 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
wokkel-muc-client-support-24
Message:

Redo admin requests using generic.Request.

This changes all role and affiliation management functionality to use a
subclass of generic.Request.

The methods for retrieving affiliation or role lists now return lists of
AdminItems, instead of modifying a Room instance and returning that. This
is because affiliation changes can also be done when not in the room.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/iwokkel.py

    r149 r150  
    988988
    989989
    990     def kick(roomJID, entityOrNick, reason=None, sender=None):
     990    def kick(roomJID, nick, reason=None, sender=None):
    991991        """
    992992        Kick a user from a MUC room.
     
    995995        @type roomJID: L{jid.JID}
    996996
    997         @param entityOrNick: The occupant to be banned.
    998         @type entityOrNick: L{jid.JID} or C{unicode}
     997        @param nick: The occupant to be banned.
     998        @type nick: L{jid.JID} or C{unicode}
    999999
    10001000        @param reason: The reason given for the kick.
Note: See TracChangeset for help on using the changeset viewer.