- Timestamp:
- Oct 1, 2008, 7:29:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remconffs
r982 r986 21 21 22 22 The machine list and the acls are drawn from a database. 23 24 This filesystem only implements the getattr, getdir, read, and readlink25 calls, because this is a read-only filesystem.26 23 """ 27 24 … … 41 38 m = Mapper() 42 39 m.connect('', controller='getroot') 40 m.connect('acl', controller='getmachines') 43 41 m.connect('acl/:machine', controller='getacl') 44 42 m.connect('conf', controller='getconf') … … 63 61 " /etc/remctl/remconffs/acl/%s" 64 62 % (machine_name, machine_name) 65 for machine_name in self.get Machines())+'\n'63 for machine_name in self.getmachines())+'\n' 66 64 67 def get Machines(self):65 def getmachines(self, **kw): 68 66 """Get the list of VMs in the database, clearing the cache if it's 69 67 older than 15 seconds""" … … 71 69 self.lasttime = time() 72 70 database.clear_cache() 73 return [machine.name for machine in database. Machine.select()]71 return [machine.name for machine in database.session.query(database.Machine).all()] 74 72 75 73 def userToPrinc(self, user):
Note: See TracChangeset
for help on using the changeset viewer.