[Twisted-Python] using defers with requests
twisted at st.imul.us
Sat Nov 15 23:52:32 EST 2003
> On Sat, Nov 15, 2003 at 07:59:05PM -0800, charles brandt wrote:
> > I added some print debug statements as follows:
> > def printResult(data, request):
> > print "entered printResult"
> > request.write("pre-data")
> > request.write(data)
> > request.write("post-data")
> > request.finish()
> > print request
> What is 'data' here? can you print repr(data)? It might be the empty
> string, or something.
2003/11/15 20:43 PST [-] entered printResult
2003/11/15 20:43 PST [-] ((13L, 'Hawaii', 'HI', 'US'),)
Seems like the request might be different from the original, or doesn't have
a channel to respond on?
More information about the Twisted-Python