comparison src/plugins/plugin_xep_0096.py @ 536:a31abb97310d

core, plugins: fixed bad namespace in stanza creation
author Goffi <goffi@goffi.org>
date Thu, 01 Nov 2012 22:41:39 +0100
parents 2a072735e459
children 2c4016921403
comparison
equal deleted inserted replaced
535:790be337cc41 536:a31abb97310d
169 #we can send the iq result 169 #we can send the iq result
170 feature_elt = self.host.plugins["XEP-0020"].chooseOption({'stream-method':stream_method}) 170 feature_elt = self.host.plugins["XEP-0020"].chooseOption({'stream-method':stream_method})
171 misc_elts = [] 171 misc_elts = []
172 misc_elts.append(domish.Element((PROFILE, "file"))) 172 misc_elts.append(domish.Element((PROFILE, "file")))
173 if can_range: 173 if can_range:
174 range_elt = domish.Element(('', "range")) 174 range_elt = domish.Element((None, "range"))
175 range_elt['offset'] = str(range_offset) 175 range_elt['offset'] = str(range_offset)
176 #TODO: manage range length 176 #TODO: manage range length
177 misc_elts.append(range_elt) 177 misc_elts.append(range_elt)
178 self.host.plugins["XEP-0095"].acceptStream(data["id"], data['from'], feature_elt, misc_elts, profile) 178 self.host.plugins["XEP-0095"].acceptStream(data["id"], data['from'], feature_elt, misc_elts, profile)
179 else: 179 else: