memory: bug fix related to method paramsRegisterApp + getParams was not always returning a Deferred

This commit is contained in:
souliane 2014-01-04 21:13:51 +01:00
commit 821f0b36ef

View file

@ -556,6 +556,9 @@ class Params(object):
if not self.checkSecurityLimit(node, security_limit):
dest_cat.removeChild(node)
continue
if not self.checkApp(node, app):
dest_cat.removeChild(node)
continue
dest_params[node.getAttribute('name')] = node
new_node = True
else:
@ -633,7 +636,7 @@ class Params(object):
profile = self.getProfileName(profile_key)
if not profile:
error(_("Asking params for inexistant profile"))
return ""
return defer.succeed("")
def returnXML(prof_xml):
return_xml = prof_xml.toxml()