comparison sat_pubsub/mam.py @ 494:468b7cd6c344 default tip

bookmark compat: handle mapped errors: This convert error on request (e.g. missing node) to appropriate stanza error.
author Goffi <goffi@goffi.org>
date Fri, 13 Dec 2024 12:23:47 +0100
parents c41f37f1b51c
children
comparison
equal deleted inserted replaced
493:33222c54d2af 494:468b7cd6c344
41 from wokkel import delay 41 from wokkel import delay
42 42
43 43
44 @implementer(mam.IMAMResource) 44 @implementer(mam.IMAMResource)
45 class MAMResource(object): 45 class MAMResource(object):
46 _errorMap = backend.PubSubResourceFromBackend._errorMap 46 _errorMap = backend.PubSubResourceFromBackend.error_map
47 47
48 def __init__(self, backend_): 48 def __init__(self, backend_):
49 self.backend = backend_ 49 self.backend = backend_
50 50
51 def _mapErrors(self, failure): 51 def _mapErrors(self, failure):