2 from sipb_xen_database import *
7 def expandLocker(name):
8 groups = getafsgroups.getLockerAcl(name)
9 cell = getafsgroups.getCell(name)
13 ans.update(getafsgroups.getAfsGroupMembers(group, cell))
19 p = subprocess.Popen(['vos', 'examine', 'user.'+name],
20 stdout=subprocess.PIPE, stderr=subprocess.PIPE)
31 return getafsgroups.getAfsGroupMembers(name, 'athena.mit.edu')
33 if __name__ == '__main__':
34 connect('postgres://sipb-xen@sipb-xen-dev/sipb_xen')
36 machines = Machine.select()
39 people.update(expandLocker(m.owner))
40 people.update(expandName(m.administrator))
41 print '%s: %s' % (m.name, ' '.join(people))
42 transaction = ctx.current.create_transaction()
46 ma = MachineAccess(machine_id=m.machine_id, user=p)