Mercurial > libervia-pubsub
diff sat_pubsub/tap.py @ 352:efbdca10f0fb
schema: node schema implementation
node schema is an experimental (not standard yet, protoXEP should follow) feature allowing to attach a data schema to a node.
This commit implement it and method needed to retrieve/set a schema.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 08 Sep 2017 08:02:05 +0200 |
parents | 83122f15b993 |
children | 9fbb31ce495b |
line wrap: on
line diff
--- a/sat_pubsub/tap.py Fri Sep 08 08:02:05 2017 +0200 +++ b/sat_pubsub/tap.py Fri Sep 08 08:02:05 2017 +0200 @@ -68,6 +68,7 @@ from sat_pubsub import const from sat_pubsub import mam as pubsub_mam from sat_pubsub.backend import BackendService +from sat_pubsub.schema import SchemaHandler from sat_pubsub.privilege import PrivilegesHandler from sat_pubsub.delegation import DelegationsHandler @@ -172,6 +173,9 @@ mam_s.addFilter(data_form.Field(var=const.MAM_FILTER_CATEGORY)) mam_s.setHandlerParent(cs) + sh = SchemaHandler() + sh.setHandlerParent(cs) + # XXX: delegation must be instancied at the end, # because it does some MonkeyPatching on handlers dh = DelegationsHandler()