Mercurial > libervia-backend
comparison sat/core/sat_main.py @ 3117:385fdd684f87
core: added a debug log when a namespace is registered
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 25 Jan 2020 21:08:25 +0100 |
parents | 3fcc99b2d6b7 |
children | 0c29155ac68b |
comparison
equal
deleted
inserted
replaced
3116:328a6cea3802 | 3117:385fdd684f87 |
---|---|
620 | 620 |
621 def registerNamespace(self, short_name, namespace): | 621 def registerNamespace(self, short_name, namespace): |
622 """associate a namespace to a short name""" | 622 """associate a namespace to a short name""" |
623 if short_name in self.ns_map: | 623 if short_name in self.ns_map: |
624 raise exceptions.ConflictError("this short name is already used") | 624 raise exceptions.ConflictError("this short name is already used") |
625 log.debug(f"registering namespace {short_name} => {namespace}") | |
625 self.ns_map[short_name] = namespace | 626 self.ns_map[short_name] = namespace |
626 | 627 |
627 def getNamespaces(self): | 628 def getNamespaces(self): |
628 return self.ns_map | 629 return self.ns_map |
629 | 630 |