Figured it out. The correct term for Beaker is middleware, not handler and therein (via Google) lay the answer.
I case anyone find this in an archive by search the answer is ... from beaker.session import SessionMiddleware self.session = web.ctx.environ['beaker.session'] def session_mw(app): return SessionMiddleware(app) application = web.wsgifunc(web.webpyfunc(urls, globals()), session_mw) and the error that you get for not getting the last line right is: KeyError: 'beaker.session' Because the item isn't in the environment if the middleware doesn't get loaded. On Sep 17, 8:57 pm, bellHead <[EMAIL PROTECTED]> wrote: > Hi > > I'm trying to build add sessions from Beaker to my webpy application. > All of the examples I can find for including it are in the form of a > web.run(....) call, and I'm using > > application = web.wsgifunc(web.webpyfunc(urls, globals())) > > How do I do the references to handlers with that calling convention? > > Thanks > > Bell --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
