file tag is needed only when restoring previous

transfers
This commit is contained in:
Dimitur Kirov 2006-04-04 08:31:36 +00:00
parent 2c41c831b9
commit cd8a5dca72
1 changed files with 2 additions and 0 deletions

View File

@ -224,6 +224,8 @@ class ConnectionBytestream:
si = iq.setTag('si') si = iq.setTag('si')
si.setNamespace(common.xmpp.NS_SI) si.setNamespace(common.xmpp.NS_SI)
if file_props.has_key('offset') and file_props['offset']: if file_props.has_key('offset') and file_props['offset']:
file_tag = si.setTag('file')
file_tag.setNamespace(common.xmpp.NS_FILE)
range_tag = file_tag.setTag('range') range_tag = file_tag.setTag('range')
range_tag.setAttr('offset', file_props['offset']) range_tag.setAttr('offset', file_props['offset'])
feature = si.setTag('feature') feature = si.setTag('feature')