# HG changeset patch # User Goffi # Date 1448223909 -3600 # Node ID 7f0c8856e4e1d2509576964e7765804204a7c97a # Parent f1da3a8d08ced905c02257298d6e04adcef97fc3 plugin file: deferred XMLUI now use security limit diff -r f1da3a8d08ce -r 7f0c8856e4e1 src/plugins/plugin_misc_file.py --- a/src/plugins/plugin_misc_file.py Sun Nov 22 21:24:23 2015 +0100 +++ b/src/plugins/plugin_misc_file.py Sun Nov 22 21:25:09 2015 +0100 @@ -47,6 +47,7 @@ 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 @@ '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 @@ '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