Changeset 835 for trunk/packages/sipb-xen-remote-server/files/usr/sbin
- Timestamp:
- Aug 3, 2008, 12:52:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-remote-server/files/usr/sbin/sipb-xen-remconffs
r832 r835 13 13 from syslog import * 14 14 15 import sipb_xen_database15 from invirt import database 16 16 from invirt.config import structs as config 17 17 … … 94 94 if time() - self.lasttime > 15: 95 95 self.lasttime = time() 96 sipb_xen_database.clear_cache()97 return [machine.name for machine in sipb_xen_database.Machine.select()]96 database.clear_cache() 97 return [machine.name for machine in database.Machine.select()] 98 98 99 99 def getacl(self, machine_name): 100 100 """Build the ACL file for a machine 101 101 """ 102 machine = sipb_xen_database.Machine.get_by(name=machine_name)102 machine = database.Machine.get_by(name=machine_name) 103 103 users = [acl.user for acl in machine.acl] 104 104 return "\n".join(map(self.userToPrinc, users) … … 229 229 230 230 if __name__ == '__main__': 231 sipb_xen_database.connect(config.db.uri)231 database.connect() 232 232 usage=""" 233 233 $0 [mount_path]
Note: See TracChangeset
for help on using the changeset viewer.