On Thu, Jun 23, 2016 at 4:05 PM, abc_coder <[email protected]>
wrote:

> what am I doing wrong or how can I set this option ?
>

As stated by the error being able to call a WSGI Application from inside TG
itself requires the request body to be seekable, as both TG and the app
need to be able to consume it. This is usually disable for performance
reasons, see
http://docs.webob.org/en/stable/api/request.html#webob.request.BaseRequest.make_body_seekable

Just set base_config['make_body_seekable'] = True in your app_cfg.py and it
should work.

But note that as DirectoryApp allows to be called with a request and
returns a Response, you can probably just do "return
DirectoryApp(site_dir)(tg.request)" without the need to use
WSGIAppController

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to