changeset 1646:7f0c8856e4e1

plugin file: deferred XMLUI now use security limit
author Goffi <goffi@goffi.org>
date Sun, 22 Nov 2015 21:25:09 +0100
parents f1da3a8d08ce
children 31b96ac3eec2
files src/plugins/plugin_misc_file.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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