On Mon, Nov 24, 2008 at 10:39 PM, Anand Chitipothu <[EMAIL PROTECTED]>wrote:

>
> >> http://0.0.0.0:8080/
> >> Traceback (most recent call last):
> [...]
> >>   File "/home/mark/work/bt/user.py", line 192, in proxyfunc
> >>     web.ctx.environ['session'] = web.ctx.environ['beaker.session']
> >> KeyError: 'beaker.session'
>
> Looks like the error is in bt/user.py.
> Is it adding 'beaker.session' to web.ctx.environ before calling proxyfunc?

does the application processor add the middleware before calling proxyfunc?
the middleware is added using the application processor helper class you
gave.

this works fine in a normal app. but not in a subdomain app.


class index:
    @user.checkaccess()
    def GET(self):
        return web.render('index.html')

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to