comparison plugins/plugin_xep_0096.py @ 8:4b05308d45f9

fixed bad namespace
author Goffi <goffi@goffi.org>
date Mon, 26 Oct 2009 17:00:19 +0100
parents c14a3a7018a5
children 218ec9984fa5
comparison
equal deleted inserted replaced
7:c14a3a7018a5 8:4b05308d45f9
143 offer["from"]=self.host.me.full() 143 offer["from"]=self.host.me.full()
144 offer["to"]=jid.JID(to).full() 144 offer["to"]=jid.JID(to).full()
145 si=offer.addElement('si','http://jabber.org/protocol/si') 145 si=offer.addElement('si','http://jabber.org/protocol/si')
146 si["mime-type"]='text/plain' 146 si["mime-type"]='text/plain'
147 si["profile"]='http://jabber.org/protocol/si/profile/file-transfer' 147 si["profile"]='http://jabber.org/protocol/si/profile/file-transfer'
148 file = si.addElement('file', 'http://jabber.org/protocol/si') 148 file = si.addElement('file', 'http://jabber.org/protocol/si/profile/file-transfer')
149 file['name']=os.path.basename(filepath) 149 file['name']=os.path.basename(filepath)
150 file['size']=str(statinfo.st_size) 150 file['size']=str(statinfo.st_size)
151 151
152 ### 152 ###
153 # FIXME: Ugly temporary hard coded implementation of XEP-0020 & XEP-0004, 153 # FIXME: Ugly temporary hard coded implementation of XEP-0020 & XEP-0004,