comparison libervia/server/server.py @ 1383:81b472bcf0a1

server: be sure to have strings for ns_map
author Goffi <goffi@goffi.org>
date Sat, 20 Feb 2021 13:55:00 +0100
parents 2d6cfce0df6c
children 822bd0139769
comparison
equal deleted inserted replaced
1382:21d30f5d582a 1383:81b472bcf0a1
889 elif value is not None: 889 elif value is not None:
890 value = v_filter(value) 890 value = v_filter(value)
891 return value 891 return value
892 892
893 def _namespacesGetCb(self, ns_map): 893 def _namespacesGetCb(self, ns_map):
894 self.ns_map = ns_map 894 self.ns_map = {str(k): str(v) for k,v in ns_map.items()}
895 895
896 def _namespacesGetEb(self, failure_): 896 def _namespacesGetEb(self, failure_):
897 log.error(_("Can't get namespaces map: {msg}").format(msg=failure_)) 897 log.error(_("Can't get namespaces map: {msg}").format(msg=failure_))
898 898
899 @template.contextfilter 899 @template.contextfilter