changeset 1497:7a9cef71ae43

core (params): fixes jid_list to use node's default value when no user value is defined
author souliane <souliane@mailoo.org>
date Sat, 22 Aug 2015 10:28:07 +0200
parents de71cd99ba9b
children e3330ce65285
files src/memory/params.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/memory/params.py	Tue Aug 25 20:20:53 2015 +0200
+++ b/src/memory/params.py	Sat Aug 22 10:28:07 2015 +0200
@@ -373,10 +373,10 @@
                         log.error(_(u'Parameter (%(cat)s, %(param)s) of type list has more than one default option!') % {'cat': cat, 'param': param})
                     raise exceptions.DataError
             elif node.getAttribute('type') == 'jids_list':
-                if not value:
+                if not value_to_use:
                     log.debug(u"jids list value is empty")
                     return []
-                jids = value.split('\t')
+                jids = value_to_use.split('\t')
                 to_delete = []
                 for idx, value in enumerate(jids):
                     try: