Changeset 166:d9c10a5b5c0d for wokkel/muc.py
- Timestamp:
- Jan 23, 2012, 3:48:48 PM (10 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/muc.py
r162 r166 228 228 229 229 @param alternate: Optional room JID of an alternate venue. 230 @type alternate: L{ jid.JID}230 @type alternate: L{JID<twisted.words.protocols.jabber.jid.JID>} 231 231 232 232 @param password: Optional password for entering the alternate venue. … … 398 398 399 399 @ivar entity: The real JID of the entity this presence is from. 400 @type entity: L{ jid.JID}400 @type entity: L{JID<twisted.words.protocols.jabber.jid.JID>} 401 401 402 402 @ivar mucStatuses: Set of one or more status codes from L{STATUS_CODE}. … … 500 500 Called when the XML stream has been initialized. 501 501 502 It initializes several XPath events to handle MUC stanzas that come in. 503 After those are initialized the method L{initialized} is called to 504 signal that we have finished. 502 It initializes several XPath events to handle MUC stanzas that come 503 in. 505 504 """ 506 505 xmppim.BasePresenceProtocol.connectionInitialized(self) … … 547 546 @param timeout: The number of seconds to wait before the deferred is 548 547 timed out. 549 @type timeout: L{int}548 @type timeout: C{int} 550 549 551 550 The deferred object L{defer.Deferred} is returned. … … 590 589 591 590 @param roomJID: The JID of the room the entity is joining. 592 @type roomJID: L{ jid.JID}591 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 593 592 594 593 @param nick: The nick name for the entitity joining the room. … … 623 622 624 623 @param roomJID: The JID of the room. 625 @type roomJID: L{ jid.JID}624 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 626 625 627 626 @param nick: The new nick name within the room. … … 640 639 641 640 @param roomJID: The Room JID of the room. 642 @type roomJID: L{ jid.JID}641 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 643 642 644 643 @param show: The availability of the entity. Common values are xa, … … 662 661 663 662 @param roomJID: The JID of the room. 664 @type roomJID: L{ jid.JID}663 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 665 664 """ 666 665 occupantJID = self._roomOccupantMap[roomJID] … … 686 685 687 686 @param occupantJID: The Room JID of the other user. 688 @type occupantJID: L{ jid.JID}687 @type occupantJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 689 688 """ 690 689 message = PrivateChat(recipient=occupantJID, body=body) … … 699 698 700 699 @param roomJID: The bare JID of the room. 701 @type roomJID: L{ jid.JID}700 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 702 701 703 702 @param subject: The subject you want to set. … … 715 714 716 715 @param roomJID: The bare JID of the room. 717 @type roomJID: L{ jid.JID}716 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 718 717 719 718 @param invitee: The entity that is being invited. 720 @type invitee: L{ jid.JID}719 @type invitee: L{JID<twisted.words.protocols.jabber.jid.JID>} 721 720 722 721 @param reason: The reason for the invite. … … 734 733 @param room: The room jabber/xmpp entity id for the requested 735 734 registration form. 736 @type room: L{ jid.JID}735 @type room: L{JID<twisted.words.protocols.jabber.jid.JID>} 737 736 """ 738 737 def cb(response): … … 751 750 752 751 @param roomJID: The bare JID of the room. 753 @type roomJID: L{ jid.JID}752 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 754 753 755 754 @param options: A mapping of field names to values, or C{None} to … … 768 767 769 768 @param roomJID: The room jabber/xmpp entity id. 770 @type roomJID: L{ jid.JID}769 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 771 770 """ 772 771 message = VoiceRequest(recipient=roomJID) … … 781 780 782 781 @param roomJID: The room jabber/xmpp entity id. 783 @type roomJID: L{ jid.JID}782 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 784 783 785 784 @param messages: The history to send to the room as an ordered list of … … 788 787 L{domish.Element}, and C{'timestamp'} with the 789 788 timestamp. 790 @type messages: L{list} of L{domish.Element}789 @type messages: C{list} of L{domish.Element} 791 790 """ 792 791 … … 817 816 818 817 @param roomJID: The bare JID of the room. 819 @type roomJID: L{ jid.JID}818 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 820 819 821 820 @return: A deferred that fires with the room's configuration form as … … 838 837 839 838 @param roomJID: The room to configure. 840 @type roomJID: L{ jid.JID}839 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 841 840 842 841 @param options: A mapping of field names to values, or C{None} to … … 885 884 886 885 @param roomJID: The bare JID of the room. 887 @type roomJID: L{ jid.JID}886 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 888 887 """ 889 888 return self._getAffiliationList(roomJID, 'member') … … 895 894 896 895 @param roomJID: The bare JID of the room. 897 @type roomJID: L{ jid.JID}896 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 898 897 """ 899 898 return self._getAffiliationList(roomJID, 'admin') … … 905 904 906 905 @param roomJID: The bare JID of the room. 907 @type roomJID: L{ jid.JID}906 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 908 907 """ 909 908 return self._getAffiliationList(roomJID, 'outcast') … … 915 914 916 915 @param roomJID: The bare JID of the room. 917 @type roomJID: L{ jid.JID}916 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 918 917 """ 919 918 return self._getAffiliationList(roomJID, 'owner') … … 925 924 926 925 @param roomJID: The bare JID of the room. 927 @type roomJID: L{ jid.JID}926 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 928 927 """ 929 928 d = self._getRoleList(roomJID, 'moderator') … … 961 960 962 961 @param roomJID: The bare JID of the room. 963 @type roomJID: L{ jid.JID}962 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 964 963 965 964 @param entities: The list of entities to change for a room. 966 @type entities: L{list} of L{jid.JID} 965 @type entities: C{list} of 966 L{JID<twisted.words.protocols.jabber.jid.JID>} 967 967 968 968 @param affiliation: The affilation to the entities will acquire. … … 970 970 971 971 @param sender: The entity sending the request. 972 @type sender: L{ jid.JID}972 @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>} 973 973 974 974 """ … … 986 986 987 987 @param roomJID: The bare JID of the room. 988 @type roomJID: L{ jid.JID}988 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 989 989 990 990 @param nick: The nick name for the user in this room. … … 995 995 996 996 @param sender: The entity sending the request. 997 @type sender: L{ jid.JID}997 @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>} 998 998 """ 999 999 return self._setRole(roomJID, nick=nick, … … 1009 1009 1010 1010 @param roomJID: The bare JID of the room. 1011 @type roomJID: L{ jid.JID}1011 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1012 1012 1013 1013 @param nick: The nick name for the user in this room. … … 1018 1018 1019 1019 @param sender: The entity sending the request. 1020 @type sender: L{ jid.JID}1020 @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>} 1021 1021 """ 1022 1022 return self._setRole(roomJID, nick=nick, role='visitor', … … 1029 1029 1030 1030 @param roomJID: The bare JID of the room. 1031 @type roomJID: L{ jid.JID}1031 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1032 1032 1033 1033 @param nick: The nick name for the user in this room. … … 1038 1038 1039 1039 @param sender: The entity sending the request. 1040 @type sender: L{ jid.JID}1040 @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>} 1041 1041 """ 1042 1042 return self._setRole(roomJID, nick=nick, role='moderator', … … 1049 1049 1050 1050 @param roomJID: The bare JID of the room. 1051 @type roomJID: L{ jid.JID}1051 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1052 1052 1053 1053 @param entity: The bare JID of the entity to be banned. 1054 @type entity: L{ jid.JID}1054 @type entity: L{JID<twisted.words.protocols.jabber.jid.JID>} 1055 1055 1056 1056 @param reason: The reason for banning the entity. … … 1058 1058 1059 1059 @param sender: The entity sending the request. 1060 @type sender: L{ jid.JID}1060 @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>} 1061 1061 """ 1062 1062 return self._setAffiliation(roomJID, entity, 'outcast', … … 1069 1069 1070 1070 @param roomJID: The bare JID of the room. 1071 @type roomJID: L{ jid.JID}1071 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1072 1072 1073 1073 @param nick: The occupant to be banned. … … 1078 1078 1079 1079 @param sender: The entity sending the request. 1080 @type sender: L{ jid.JID}1080 @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>} 1081 1081 """ 1082 1082 return self._setRole(roomJID, nick, 'none', … … 1089 1089 1090 1090 @param roomJID: The JID of the room. 1091 @type roomJID: L{ jid.JID}1091 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1092 1092 1093 1093 @param reason: The reason for the destruction of the room. … … 1095 1095 1096 1096 @param alternate: The JID of the room suggested as an alternate venue. 1097 @type alternate: L{ jid.JID}1097 @type alternate: L{JID<twisted.words.protocols.jabber.jid.JID>} 1098 1098 1099 1099 """ … … 1129 1129 1130 1130 @ivar roomJID: The Room JID of the MUC room. 1131 @type roomJID: L{JID }1131 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1132 1132 1133 1133 @ivar nick: The nick name for the client in this room. … … 1136 1136 @ivar occupantJID: The JID of the occupant in the room. Generated from 1137 1137 roomJID and nick. 1138 @type occupantJID: L{ jid.JID}1138 @type occupantJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1139 1139 1140 1140 @ivar locked: Flag signalling a locked room. A locked room first needs … … 1208 1208 Multi-User Chat client protocol. 1209 1209 1210 This is a subclass of L{XMPPHandler} and implements L{IMUCC Lient}.1210 This is a subclass of L{XMPPHandler} and implements L{IMUCClient}. 1211 1211 1212 1212 @ivar _rooms: Collection of occupied rooms, keyed by the bare JID of the … … 1244 1244 the L{Room} instance associated with it. 1245 1245 1246 @type occupantJID: L{ jid.JID}1246 @type occupantJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1247 1247 """ 1248 1248 return self._rooms.get(roomJID) … … 1437 1437 1438 1438 @param roomJID: The JID of the room the entity is joining. 1439 @type roomJID: L{ jid.JID}1439 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1440 1440 1441 1441 @param nick: The nick name for the entitity joining the room. … … 1481 1481 1482 1482 @param roomJID: The JID of the room, i.e. without a resource. 1483 @type roomJID: L{ jid.JID}1483 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1484 1484 1485 1485 @param nick: The new nick name within the room. … … 1505 1505 1506 1506 @param roomJID: The Room JID of the room to leave. 1507 @type roomJID: L{ jid.JID}1507 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1508 1508 """ 1509 1509 def cb(presence): … … 1522 1522 1523 1523 @param roomJID: The Room JID of the room. 1524 @type roomJID: L{ jid.JID}1524 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1525 1525 1526 1526 @param show: The availability of the entity. Common values are xa, … … 1542 1542 1543 1543 @param roomJID: The JID of the room. 1544 @type roomJID: L{ jid.JID}1544 @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>} 1545 1545 1546 1546 @param reason: The reason for the destruction of the room. … … 1548 1548 1549 1549 @param alternate: The JID of the room suggested as an alternate venue. 1550 @type alternate: L{ jid.JID}1550 @type alternate: L{JID<twisted.words.protocols.jabber.jid.JID>} 1551 1551 1552 1552 """
Note: See TracChangeset
for help on using the changeset viewer.