comparison src/plugins/plugin_xep_0045.py @ 279:51085ed613c3

removed old useless code
author Goffi <goffi@goffi.org>
date Tue, 01 Feb 2011 23:10:41 +0100
parents b1794cbb88e5
children 7c79d4a8c9e6
comparison
equal deleted inserted replaced
278:56d9c4cfdcfa 279:51085ed613c3
38 38
39 try: 39 try:
40 from twisted.words.protocols.xmlstream import XMPPHandler 40 from twisted.words.protocols.xmlstream import XMPPHandler
41 except ImportError: 41 except ImportError:
42 from wokkel.subprotocols import XMPPHandler 42 from wokkel.subprotocols import XMPPHandler
43
44 AVATAR_PATH = "/avatars"
45
46 IQ_GET = '/iq[@type="get"]'
47 NS_VCARD = 'vcard-temp'
48 VCARD_REQUEST = IQ_GET + '/vCard[@xmlns="' + NS_VCARD + '"]' #TODO: manage requests
49
50 PRESENCE = '/presence'
51 NS_VCARD_UPDATE = 'vcard-temp:x:update'
52 VCARD_UPDATE = PRESENCE + '/x[@xmlns="' + NS_VCARD_UPDATE + '"]'
53 43
54 PLUGIN_INFO = { 44 PLUGIN_INFO = {
55 "name": "XEP 0045 Plugin", 45 "name": "XEP 0045 Plugin",
56 "import_name": "XEP_0045", 46 "import_name": "XEP_0045",
57 "type": "XEP", 47 "type": "XEP",
143 #XXX: this is a ugly workaround as MUCClient thrown an error if there is invalid chars in the room jid (like with the default string) 133 #XXX: this is a ugly workaround as MUCClient thrown an error if there is invalid chars in the room jid (like with the default string)
144 #FIXME: must be removed when MUCClient manage this better 134 #FIXME: must be removed when MUCClient manage this better
145 self.__err_joining_room(None, profile) 135 self.__err_joining_room(None, profile)
146 136
147 def getHandler(self, profile): 137 def getHandler(self, profile):
148 #reactor.callLater(15,self.join,"conference.necton2.int", "test", "Goffi \o/", profile)
149 self.clients[profile] = SatMUCClient(self) 138 self.clients[profile] = SatMUCClient(self)
150 return self.clients[profile] 139 return self.clients[profile]
151 140
152 141
153 142