def setUpClass(self):
     chestfreezer_api.start(server_type = "wsgiref")
     time.sleep(1)                
     chestfreezer_api.configuration.db_type = overwriten_db_type        
     chestfreezer_api.configuration.set_should_send_emails(False)
     chestfreezer_api.configuration.set_is_security_enabled(True)        
     db_adapter.connect()        
     temperature_probes.initialize_probes()        
     temperature_probes.determine_master_probe()
     self.http = httplib2.Http(".cache")
     print       
Exemplo n.º 2
0
def start_web_interface(server_type = "paste"):        
    """ starts the bottle.py server """            
    print 'Starting web interface...\n'        
    api.start(server_type)