Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/p/SPADE-2.2.1/spade/Agent.py   SPADE(Download)
        #search by name
        aad = AmsAgentDescription()
        aad.setAID(AID.aid(name=query))
        res = self.searchAgent(aad)
        if res:
            agentslist += res
 
        #search by address
        aad = AmsAgentDescription()
        aad.setAID(AID.aid(addresses=[query]))

src/s/p/spade-HEAD/spade/Agent.py   spade(Download)
        #search by name
        aad = AmsAgentDescription()
        aad.setAID(AID.aid(name=query))
        res = self.searchAgent(aad)
        if res:
            agentslist += res
 
        #search by address
        aad = AmsAgentDescription()
        aad.setAID(AID.aid(addresses=[query]))