Ejemplo n.º 1
0
 def setUp(self):
     super(AdminTests, self).setUp()
     
     c = omero.client(pmap=['--Ice.Config='+(os.environ.get("ICE_CONFIG"))])
     try:
         root_password = c.ic.getProperties().getProperty('omero.rootpass')
         omero_host = c.ic.getProperties().getProperty('omero.host')
     finally:
         c.__del__()
     
     from omeroweb.webadmin.custom_models import Server
     server_id = Server.find(server_host=omero_host).id
     self.login('root', root_password, server_id)
Ejemplo n.º 2
0
 def lookup_host_and_port(self):
     server = Server.get(self.server_id)
     if server is None:
         server = Server.find(server=self.server_id)
     return (server.host, server.port)