Mercurial > libervia-pubsub
comparison idavoll/idavoll.py @ 97:cf918d581da5
Enable admin to hide all nodes when the service is queried using disco items.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Tue, 23 Nov 2004 17:05:21 +0000 |
parents | 878a5b7697f2 |
children | b75fcc554358 |
comparison
equal
deleted
inserted
replaced
96:f289c3e1dd0a | 97:cf918d581da5 |
---|---|
138 import memory_backend as b | 138 import memory_backend as b |
139 st = b.Storage() | 139 st = b.Storage() |
140 | 140 |
141 bs = b.BackendService(st) | 141 bs = b.BackendService(st) |
142 | 142 |
143 component.IService(bs).setServiceParent(sm) | 143 c = component.IService(bs) |
144 c.setServiceParent(sm) | |
145 c.hide_nodes = config["hide-nodes"] | |
144 | 146 |
145 bsc = b.PublishService() | 147 bsc = b.PublishService() |
146 bsc.setServiceParent(bs) | 148 bsc.setServiceParent(bs) |
147 component.IService(bsc).setServiceParent(sm) | 149 component.IService(bsc).setServiceParent(sm) |
148 | 150 |