comparison src/plugins/plugin_xep_0363.py @ 1875:c55220fc03e4

plugin XEP-0363: fixes a forgotten attribute update
author souliane <souliane@mailoo.org>
date Fri, 04 Mar 2016 10:00:23 +0100
parents a19161bb3ff7
children 2daf7b4c6756
comparison
equal deleted inserted replaced
1874:658824755a0c 1875:c55220fc03e4
232 @param size(int): size of the file (must be non null) 232 @param size(int): size of the file (must be non null)
233 @param upload_jid(jid.JID(), None, ''): HTTP upload capable entity 233 @param upload_jid(jid.JID(), None, ''): HTTP upload capable entity
234 @param content_type(unicode, None): MIME type of the content 234 @param content_type(unicode, None): MIME type of the content
235 empty string or None to guess automatically 235 empty string or None to guess automatically
236 """ 236 """
237 filename.replace('/', '_') 237 filename = filename.replace('/', '_')
238 client = self.host.getClient(profile_key) 238 client = self.host.getClient(profile_key)
239 return self.getSlot(client, filename, size, content_type or None, upload_jid or None) 239 return self.getSlot(client, filename, size, content_type or None, upload_jid or None)
240 240
241 def getSlot(self, client, filename, size, content_type=None, upload_jid=None): 241 def getSlot(self, client, filename, size, content_type=None, upload_jid=None):
242 """Get a slot (i.e. download/upload links) 242 """Get a slot (i.e. download/upload links)