Changeset 140:46bd9821f979 for wokkel/muc.py
- Timestamp:
- Aug 4, 2011, 9:18:48 PM (11 years ago)
- Branch:
- wokkel-muc-client-support-24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
wokkel/muc.py
r139 r140 37 37 NS_REQUEST = 'jabber:iq:register' 38 38 39 # Iq get and set XPath queries40 IQ = '/iq'41 IQ_GET = IQ+'[@type="get"]'42 IQ_SET = IQ+'[@type="set"]'43 44 IQ_RESULT = IQ+'[@type="result"]'45 IQ_ERROR = IQ+'[@type="error"]'46 47 IQ_QUERY = IQ+'/query'48 IQ_GET_QUERY = IQ_GET + '/query'49 IQ_SET_QUERY = IQ_SET + '/query'50 51 IQ_COMMAND = IQ+'/command'52 53 MUC_ADMIN = IQ_QUERY+'[@xmlns="' + NS_MUC_ADMIN + '"]'54 MUC_OWNER = IQ_QUERY+'[@xmlns="' + NS_MUC_OWNER + '"]'55 56 MUC_AO = MUC_ADMIN + '|' + MUC_OWNER57 58 59 39 MESSAGE = '/message' 60 40 PRESENCE = '/presence' 61 41 62 CHAT_BODY = MESSAGE +'[@type="chat"]/body'63 CHAT = MESSAGE +'[@type="chat"]'64 65 42 GROUPCHAT = MESSAGE +'[@type="groupchat"]/body' 66 43 SUBJECT = MESSAGE +'[@type="groupchat"]/subject' 67 MESSAGE_ERROR = MESSAGE +'[@type="error"]'68 69 STATUS_CODES = { # see http://www.xmpp.org/extensions/xep-0045.html#registrar-statuscodes70 100:71 {'name':'fulljid',72 'stanza':'presence',73 74 },75 201:76 {'name':'created',77 'stanza': 'presence',78 'context':'Entering a room',79 'purpose':'Inform user that a new room has been created'80 },81 }82 83 STATUS_CODE_CREATED = 20184 44 85 45 DEFER_TIMEOUT = 30 # basic timeout is 30 seconds
Note: See TracChangeset
for help on using the changeset viewer.