Changeset 986 for trunk/packages
- Timestamp:
- Oct 1, 2008, 7:29:06 PM (16 years ago)
- Location:
- trunk/packages/sipb-xen-remote-server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remote-server/debian/changelog
r982 r986 1 sipb-xen-remote-server (0.9) unstable; urgency=low 2 3 * Make the acl/ subdir of RemConfFS listable 4 * Update RemConfFS for new SQLAlchemy code 5 6 -- Evan Broder <broder@mit.edu> Wed, 01 Oct 2008 19:28:23 -0400 7 1 8 sipb-xen-remote-server (0.8) unstable; urgency=low 2 9 -
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.