#
# Thierry Parmentelat - INRIA
#
-# $Id: GetPeerData.py,v 1.13 2007/03/28 14:00:27 thierry Exp $
+# $Id: GetPeerData.py 5574 2007-10-25 20:33:17Z thierry $
import time
node_fields = filter(lambda field: field not in \
['boot_nonce', 'key', 'session', 'root_person_ids'],
Node.fields)
+ nodes = Nodes(self.api, {'peer_id': None}, node_fields);
+ # filter out whitelisted nodes
+ nodes = [ n for n in nodes if not n['slice_ids_whitelist']]
+
person_fields = filter(lambda field: field not in \
['password', 'verification_key', 'verification_expires'],
result = {
'Sites': Sites(self.api, {'peer_id': None}),
'Keys': Keys(self.api, {'peer_id': None}),
- 'Nodes': Nodes(self.api, {'peer_id': None}, node_fields),
+ 'Nodes': nodes,
'Persons': persons,
'Slices': slices,
}