Mercurial > libervia-pubsub
comparison sat_pubsub/backend.py @ 288:073161f6f143
namespace delegation: disco nesting management
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 17 Apr 2015 21:09:37 +0200 |
parents | a87c155d0fd5 |
children | 9f612fa19eea |
comparison
equal
deleted
inserted
replaced
287:61f92273fb69 | 288:073161f6f143 |
---|---|
971 exc = StanzaError(condition, text=msg) | 971 exc = StanzaError(condition, text=msg) |
972 | 972 |
973 raise exc | 973 raise exc |
974 | 974 |
975 def getInfo(self, requestor, service, nodeIdentifier): | 975 def getInfo(self, requestor, service, nodeIdentifier): |
976 if not requestor.resource: | |
977 # this avoid error when getting a disco request from server during namespace delegation | |
978 return [] | |
976 info = {} | 979 info = {} |
977 | 980 |
978 def saveType(result): | 981 def saveType(result): |
979 info['type'] = result | 982 info['type'] = result |
980 return nodeIdentifier | 983 return nodeIdentifier |