#NEWLINE# def get_stream_info_from_txid( self , name , txid ) : #NEWLINE# #INDENT# d = self . get_claims_from_tx ( txid ) #NEWLINE# def get_claim_for_name( claims ) : #NEWLINE# #INDENT# for claim in claims : #NEWLINE# #INDENT# if ( claim [ 'name' ] == name ) : #NEWLINE# #INDENT# claim [ 'txid' ] = txid #NEWLINE# return claim #NEWLINE# #UNINDENT# #UNINDENT# return Failure ( UnknownNameError ( name ) ) #NEWLINE# #UNINDENT# d . addCallback ( get_claim_for_name ) #NEWLINE# d . addCallback ( self . _get_stream_info_from_value , name ) #NEWLINE# return d