summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
443cfe1)
- removed redundant parameter to connect()
svn path=/trunk/packages/sipb-xen-remote-server/; revision=835
-import sipb_xen_database
+from invirt import database
from invirt.config import structs as config
fuse.fuse_python_api = (0, 2)
from invirt.config import structs as config
fuse.fuse_python_api = (0, 2)
older than 15 seconds"""
if time() - self.lasttime > 15:
self.lasttime = time()
older than 15 seconds"""
if time() - self.lasttime > 15:
self.lasttime = time()
- sipb_xen_database.clear_cache()
- return [machine.name for machine in sipb_xen_database.Machine.select()]
+ database.clear_cache()
+ return [machine.name for machine in database.Machine.select()]
def getacl(self, machine_name):
"""Build the ACL file for a machine
"""
def getacl(self, machine_name):
"""Build the ACL file for a machine
"""
- machine = sipb_xen_database.Machine.get_by(name=machine_name)
+ machine = database.Machine.get_by(name=machine_name)
users = [acl.user for acl in machine.acl]
return "\n".join(map(self.userToPrinc, users)
+ ['include /etc/remctl/acl/web',
users = [acl.user for acl in machine.acl]
return "\n".join(map(self.userToPrinc, users)
+ ['include /etc/remctl/acl/web',
if __name__ == '__main__':
if __name__ == '__main__':
- sipb_xen_database.connect(config.db.uri)
usage="""
$0 [mount_path]
"""
usage="""
$0 [mount_path]
"""