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

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

            @staticmethod
    def getDesc(peer, theTime, action, timeOffset, params):
        nsId_ = params["nsId"]
        block_ = params["block"]
        timeout_ = params["timeout"]
        result_ = params["result"]
        response_ = params["response"]
        data_ = params["data"]
        uu_ = params["uu"]
        ss = []
        blockTimeout = None
        if block_!=None:
            if block_==True:
                if timeout_!=None:
                    blockTimeout = "(block=True, timeout=%(T)s)"%{"T":timeout_}
                else:
                    blockTimeout = "(block=True)"
            else:
                blockTimeout = "(block=False)"
        if action==Enablers.CREATE_START:
            nsId_ = "?"
        response_ = Filterer._checkFullEmpty(response_)
        result_ = Filterer._checkFullEmpty(result_)
        args = {"PEER":peer, "ACTION":action, "B_T":blockTimeout, "NSID":nsId_, "D":data_, "R":result_, "RS":response_, "TT":theTime, "TO":timeOffset, "UU":uu_}
        ss.append("[%(PEER)s]"%args)
        if nsId_!=None:
            ss.append("[%(NSID)s]"%args)
        if action!=None:
            args["ACTION"] = args["ACTION"].upper()
            ss.append("%(ACTION)s"%args)
#        print "ACTION: %(A)s"%{"A":args["ACTION"]}
        sss = []
        if blockTimeout!=None:
            sss.append("%(B_T)s"%args)
        if (data_!=None) and (data_!=""):
            sss.append("Data: <%(D)s>"%args)
        if (result_!=None) and (result_!=""):
            sss.append("Result: <%(R)s>"%args)
        if (response_!=None) and len(response_)>0 and (response_!=""):
            sss.append("Response: <%(RS)s>"%args)
        if len(sss)>0:
            ss.append("[")
        ss.extend(sss)
        if len(sss)>0:
            ss.append("]")
        ss.append("[ Time: %(TT)s (%(TO)s), UU: %(UU)s ]"%args)
        desc = " - ".join(ss)
#        print "DESC: %(A)s"%{"A":desc}
        return desc
        


src/p/y/PyRQ-0.4.1/PyRQ/Ui/qt4/RRQDebugger/FiltererModel.py   PyRQ(Download)
                for data in dd:
                    (_dataCount, peer, theTime, action, timeOffset, params, _nArgs, _kwargs, _row) = self._extractAll(data)
                    desc = Filterer.getDesc(peer, theTime, action, timeOffset, params)
                    fp.write(desc+"\n")
                    fp.flush()