From 66739d9dfc609008d872d20d8ba71575f2fda919 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 23 Nov 2015 13:19:42 +0100 Subject: [PATCH] core (param), plugin file: set security_limit for acount changes, backend (dis)connection, and put a higher one for file send --- src/memory/params.py | 17 +++++++++-------- src/plugins/plugin_misc_file.py | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/memory/params.py b/src/memory/params.py index 8205014f..d567cf18 100644 --- a/src/memory/params.py +++ b/src/memory/params.py @@ -53,14 +53,14 @@ class Params(object): - - - - - + + + + + - - + + @@ -458,7 +458,8 @@ class Params(object): @param profile: owner of the param (@ALL@ for everyone) @return: attribute """ - #FIXME: looks really dirty and buggy, need to be reviewed/refactored + # FIXME: looks really dirty and buggy, need to be reviewed/refactored + # FIXME: security_limit is not managed here ! node = self._getParamNode(name, category) if not node: log.error(_(u"Requested param [%(name)s] in category [%(category)s] doesn't exist !") % {'name': name, 'category': category}) diff --git a/src/plugins/plugin_misc_file.py b/src/plugins/plugin_misc_file.py index cadce68d..5376747b 100644 --- a/src/plugins/plugin_misc_file.py +++ b/src/plugins/plugin_misc_file.py @@ -47,7 +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 +SECURITY_LIMIT = 30 PROGRESS_ID_KEY = 'progress_id'