comparison libervia/server/server.py @ 1217:fe9782391f63

server: fixed value filtering in getConfig
author Goffi <goffi@goffi.org>
date Fri, 16 Aug 2019 17:12:10 +0200
parents b2d067339de3
children c9fc839d304c
comparison
equal deleted inserted replaced
1216:b2d067339de3 1217:fe9782391f63
685 if isinstance(value, list): 685 if isinstance(value, list):
686 value = [v_filter(v) for v in value] 686 value = [v_filter(v) for v in value]
687 elif isinstance(value, dict): 687 elif isinstance(value, dict):
688 value = {k:v_filter(v) for k,v in list(value.items())} 688 value = {k:v_filter(v) for k,v in list(value.items())}
689 elif value is not None: 689 elif value is not None:
690 value = v_filter(v) 690 value = v_filter(value)
691 return value 691 return value
692 692
693 def _namespacesGetCb(self, ns_map): 693 def _namespacesGetCb(self, ns_map):
694 self.ns_map = ns_map 694 self.ns_map = ns_map
695 695