[Paste] Re: webob, get_response, and a few small docs fixes

Top Page
Author: Sergey Schetinin
Date:  
To: Jon Nelson
CC: Paste Users
Subject: [Paste] Re: webob, get_response, and a few small docs fixes

Your environ_app is not a valid WSGI app, try this:

def environ_app(environ, start_response):
  start_response('200 OK', [('Content-Type', 'text/plain')])
  return [pprint.pformat(environ)]


On 2009-07-01, Jon Nelson <jnelson@???> wrote:
> According to the docs, this should work:
>
> >>> import pprint
> >>> from webob import Request
> >>> def environ_app(environ, start_response):
> ... start_response('200', ['Content-Type: text/plain'])
> ... return pprint.pformat(environ)
> ...
> >>> req = Request.blank('/')
> >>> r = req.get_response(environ_app)
> >>> print r
>
> But it doesn't. :-(
>
> I've included a doctest for this as well as some very small docs tweaks.
>
>
> I'm also curious when the next webob release might be, there appear to
> be some fixes in svn that might be useful!
>
>
> --
> Jon
>
> >
>
>



-- 
Best Regards,
Sergey Schetinin

http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Paste Users" group.
To post to this group, send email to paste-users@???
To unsubscribe from this group, send email to paste-users+unsubscribe@???
For more options, visit this group at http://groups.google.com/group/paste-users?hl=en
-~----------~----~----~----~------~----~------~--~---