@implementer(IDroneModelAppInstance)
def AdaptAppProcessToAppInstance(ap):
    server = ap.server
    pid = ap.pid
    inode = ap.inode
    for ai in AppInstance.objects:
        if ai.server != server: continue
        if ai.pid != pid: continue
        if not ai.__class__.isValid(ai): continue
        ai.inode = inode #keep the appinstance honest
        return ai #matched
    raise AssertionError('No AppInstance Found for This AppProcess')
Alternative Application Home page
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/lib/droned/models/app.py/AdaptAppProcessToAppInstance--crossover with--dataset/ETHPy150Open sahana/eden/controllers/inv.py/index2