fixed bad namespace

This commit is contained in:
Goffi 2009-10-26 17:00:19 +01:00
commit 8bb9cb97fc
2 changed files with 2 additions and 1 deletions

View file

@ -453,6 +453,7 @@ class XEP_0065():
def sendFile(self, id, filepath, size):
#lauching socks5 initiator
debug("Launching socks5 initiator")
self.server_factory.protocol.mode = "initiator"
self.server_factory.protocol.filepath = filepath
self.server_factory.protocol.filesize = size

View file

@ -145,7 +145,7 @@ class XEP_0096:
si=offer.addElement('si','http://jabber.org/protocol/si')
si["mime-type"]='text/plain'
si["profile"]='http://jabber.org/protocol/si/profile/file-transfer'
file = si.addElement('file', 'http://jabber.org/protocol/si')
file = si.addElement('file', 'http://jabber.org/protocol/si/profile/file-transfer')
file['name']=os.path.basename(filepath)
file['size']=str(statinfo.st_size)