[Repoze-dev] repoze.what-pylons question

2009-09-16 Thread Iain Duncan
Hi folks, not sure if this should be on pylons or here. I'm using the repoze.what pylons quickstart code, and I'm having problems with the fact that when @protect_action fails, it tries to call the login action *for the current controller*. This is causing me pain when my controller is a wsgi

Re: [Repoze-dev] repoze.what-pylons question

2009-09-16 Thread Douglas Mayle
I'm not exactly sure, but I've done some similar things which have worked, so I might be able to help out. First of all, instead of using default, you should probably be using __call__, like in: http://projects.mayle.org/hg/DVDev/file/c0c8da51a663/dvdev/controllers/mercurialgateway.py#l44

Re: [Repoze-dev] repoze.what-pylons question

2009-09-16 Thread Iain Duncan
On Wed, 2009-09-16 at 10:55 +0200, Douglas Mayle wrote: I'm not exactly sure, but I've done some similar things which have worked, so I might be able to help out. First of all, instead of using default, you should probably be using __call__, like in: