pyca/utils.py
def set_service_status(service, status):
    '''Update the status of a particular service in the database.
    '''
    srv = db.ServiceStates()
    srv.type = service
    srv.status = status

    dbs = db.get_session()
    dbs.merge(srv)
    dbs.commit()
    dbs.close()
def set_service_status(service, status):
    '''Update the status of a particular service in the database.
    '''
    srv = db.ServiceStates()
    srv.type = service
    srv.status = status

    dbs = db.get_session()
    dbs.merge(srv)
    dbs.commit()
    dbs.close()
def set_service_status ( service , status ) : srv = db . ServiceStates ( ) srv . type = service srv . status = status dbs = db . get_session ( ) dbs . merge ( srv ) dbs . commit ( ) dbs . close ( )
Update the status of a particular service in the database.
Update the status of a particular service in the database .