Changeset 140:46bd9821f979 for wokkel


Ignore:
Timestamp:
Aug 4, 2011, 9:18:48 PM (9 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
wokkel-muc-client-support-24
Message:

Remove unused constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/muc.py

    r139 r140  
    3737NS_REQUEST = 'jabber:iq:register'
    3838
    39 # Iq get and set XPath queries
    40 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_OWNER
    57 
    58 
    5939MESSAGE = '/message'
    6040PRESENCE = '/presence'
    6141
    62 CHAT_BODY = MESSAGE +'[@type="chat"]/body'
    63 CHAT = MESSAGE +'[@type="chat"]'
    64 
    6542GROUPCHAT = MESSAGE +'[@type="groupchat"]/body'
    6643SUBJECT = MESSAGE +'[@type="groupchat"]/subject'
    67 MESSAGE_ERROR = MESSAGE +'[@type="error"]'
    68 
    69 STATUS_CODES = { # see http://www.xmpp.org/extensions/xep-0045.html#registrar-statuscodes
    70     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 = 201
    8444
    8545DEFER_TIMEOUT = 30 # basic timeout is 30 seconds
Note: See TracChangeset for help on using the changeset viewer.