Example #1
0
def order_stage(state):
    sinfo = astage

    frd,g,sm = state['istream'],state['graph'],state['stagemap']
    frd.send('order',sinfo)
    sgn,sgw,sgt = sinfo
    sm[sgn] = sg.stage(sgn,sgw,sgt)
    g.avert(g.root,sgn,sm[sgn])
    return True
Example #2
0
    def astage(self,state,sinfo):
        sgn,sgw,sgt = sinfo
        state['stagemap'][sgn] = sg.stage(sgn,sgw,sgt)
        g = state['graph']
        g.avert(g.root,sgn,state['stagemap'][sgn])

        print 'STAGE ORDER FROM!!',sinfo
        print 'at astage',state['stagemap']

        return True