I would do the same, the problem is the original environment is not passed to the function there should be a hook for that. Something like:
request._wsgi_environ Massimo On Oct 28, 9:42 am, hcvst <[email protected]> wrote: > Hi Massimo, > > I am trying to write a Google wave bot and use the wavebot client api > as directly as possible as the internals are likely to change. > Bots are just wsgi apps. > > I've changed routes_in to map all calls originating from wave to > one controller function. > > Perhaps I should just emulate env and start_response: > env would equal more or less request.env (all Caps and '_' replaced > with '-' ) > and start_response would be a simple callback to set response headers > (and to > raise an HTTP x if not OK 200). > > How would you go about this? > > Thanks, > HC > > On Oct 28, 4:06 pm, mdipierro <[email protected]> wrote: > > > On Oct 28, 7:05 am, hcvst <[email protected]> wrote: > > > > Hi, > > > > can I dispatch from a w2p controller to another wsgi app? Sth like: > > > > def index(): > > > wsgiapp(env, start_response) > > > No > > > > Alternatively, is there a method to write the HTTP response directly, > > > where 'directly' could mean directly to the socket itself? > > > No but the above approach would not allow that ether bacuse > > start_response writes the headers anyway. Tell'us what you are trying > > to accomplish because I am sure there is a way. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

