Re: EvalExceptions with apache

2008-04-19 Thread petr kobalicek
I have probabbly solved this by using: set debug = false interesting :) 2008/4/19, [EMAIL PROTECTED] [EMAIL PROTECTED]: Hi, I'm testing my pylons application with apache and I have one problem. Sometimes it sends me internal server error (500) and in apache log is AssertionError: The

Re: CSRF Question

2008-04-19 Thread Wichert Akkerman
Previously Jonathan Vanasco wrote: neat bob. I kind of like how django hacked it as a middleware filter though... maybe i could take your code and push it into two decorators... @csrf_protect_form - set global that will regex forms and add tokens A regexp can't detect if it is

Re: EvalExceptions with apache

2008-04-19 Thread Graham Dumpleton
Also read section 'Browser Based Debugger' of: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques to find out why you had the problem in the first place. Graham On Apr 20, 4:32 am, petr kobalicek [EMAIL PROTECTED] wrote: I have probabbly solved this by using: set debug = false

Re: CSRF Question

2008-04-19 Thread Ben Bangert
On Apr 18, 2008, at 9:04 AM, Jonathan Vanasco wrote: Django has a neat middleware component http://www.djangoproject.com/documentation/csrf/ has anyone thought of porting this to pylons? WebHelpers has a secure_form tag, and there's a secure_form decorator in Pylons that checks and