plugin file: deferred XMLUI now use security limit

This commit is contained in:
Goffi 2015-11-22 21:25:09 +01:00
commit f1864a7dfa

View file

@ -47,6 +47,7 @@ CONFIRM = D_(u'{peer} wants to send the file "{name}" to you:\n{desc}\n\nThe fil
CONFIRM_TITLE = D_(u'Confirm file transfer')
CONFIRM_OVERWRITE = D_(u'File {} already exists, are you sure you want to overwrite ?')
CONFIRM_OVERWRITE_TITLE = D_(u'File exists')
SECURITY_LIMIT = 10
PROGRESS_ID_KEY = 'progress_id'
@ -322,6 +323,7 @@ class FilePlugin(object):
'meta_type': C.META_TYPE_OVERWRITE,
'meta_progress_id': file_data[PROGRESS_ID_KEY]
},
security_limit=SECURITY_LIMIT,
profile=profile)
exists_d.addCallback(check_overwrite)
return exists_d
@ -369,6 +371,7 @@ class FilePlugin(object):
'meta_type': C.META_TYPE_FILE,
'meta_progress_id': file_data[PROGRESS_ID_KEY]
},
security_limit=SECURITY_LIMIT,
profile=profile)
d.addCallback(self._gotConfirmation, peer_jid, transfer_data, file_data, profile)
return d