comparison idavoll/tap.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 66fac7cd9edc
children 5191ba7c4df8
comparison
equal deleted inserted replaced
96:f289c3e1dd0a 97:cf918d581da5
12 ('backend', None, 'memory'), 12 ('backend', None, 'memory'),
13 ('dbuser', None, ''), 13 ('dbuser', None, ''),
14 ('dbname', None, 'pubsub'), 14 ('dbname', None, 'pubsub'),
15 ] 15 ]
16 16
17 optFlags = [('verbose', 'v', 'Show traffic')] 17 optFlags = [
18 ('verbose', 'v', 'Show traffic'),
19 ('hide-nodes', None, 'Hide all nodes for disco')
20 ]
18 21
19 def postOptions(self): 22 def postOptions(self):
20 if self['backend'] not in ['pgsql', 'memory']: 23 if self['backend'] not in ['pgsql', 'memory']:
21 raise usage.UsageError, "Unknown backend!" 24 raise usage.UsageError, "Unknown backend!"
22 25