diff 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
line wrap: on
line diff
--- a/idavoll/idavoll.py	Tue Nov 23 16:36:58 2004 +0000
+++ b/idavoll/idavoll.py	Tue Nov 23 17:05:21 2004 +0000
@@ -140,7 +140,9 @@
 
     bs = b.BackendService(st)
 
-    component.IService(bs).setServiceParent(sm)
+    c = component.IService(bs)
+    c.setServiceParent(sm)
+    c.hide_nodes = config["hide-nodes"]
 
     bsc = b.PublishService()
     bsc.setServiceParent(bs)