Ian Bicking wrote:
> Martijn Faassen wrote:
[snip]
>> Is there any chance WSGIProxy
>> could be released to PyPI any time soon? What kind of cleanups would
>> you like to do? It's just nicer to work with a release than it is to
>> work with an SVN external.
> 
> Sure, it's long overdue for some kind of release.  I'll put something 
> together today.

Haven't seen it appear yet. :)

> One caveat is that I haven't translated the response file object into an 
> iterator, so exactproxy reads the entire response into memory.  
[snip]
> But this will all be transparent as far as webob is concerned.

Right, it sounds like a good improvement, but I'm not too concerned 
about reading everything into memory at this point.

[snip]
> Using WebTest for HTTP testing is more of an example of doing the same 
> kind of thing as you propose.  Of course you'll want to test your client 
> library API directly.
> 
> For testing I think a simple setup would be like:
> 
>  >>> def test_app(environ, start_response):
> ...     req = Request(environ)
> ...     print 'Client request:'
> ...     print req
> ...     return response(environ, start_response)
>  >>> clientapi.proxy_app = test_app
>  >>> response = Response(body='[1, 2]', content_type='application/json')
>  >>> clientapi.get_ids()
> Client request:
> GET /ids HTTP/1.0
> Host: localhost
>  >>> and so forth...

That was indeed the kind of approach I was thinking about. I have a way 
forward now, thanks!

Regards,

Martijn


_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to