memory: bug fix related to method paramsRegisterApp + getParams was not always returning a Deferred
This commit is contained in:
parent
409bbccebe
commit
821f0b36ef
1 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue