I manage to narrow the error little bit more. HTTP method is making the 
difference. If I set the form’s method to GET error handler works too. It is 
nothing to do with form.process as it has nothing to do with the error itself 
(Amending the below comment of mine).
> On 31 Jan 2015, at 15:55, M. Cem Eren <c...@cemeren.com> wrote:
> 
> I replicate the error easily. Could you please try to change your 
> controller’s index function to:
> 
> def index():
>     """
>     example action using the internationalization operator T and flash
>     rendered by views/default/index.html or views/generic.html
> 
>     if you need a simple wiki simply replace the two lines below with:
>     return auth.wiki()
>     """
>     form = A('Click', _href=URL(c='default', f='index', args='1')) 
> #SQLFORM.factory(Field('thing', 'string'))
>     if len(request.args): raise Exception
>     #if form.process().accepted:
>     #    raise Exception
>     #elif form.errors:
>     #    pass
>     #else:
>     #    pass
>     return dict(form=form)
> 
> and try once more.
> 
> After form.process nothing left out of request I guess, and this causes the 
> consequent events. Shall we say, bad luck in example.
> 
> 
>> On 31 Jan 2015, at 10:43, Louis Amon <moo...@msn.com 
>> <mailto:moo...@msn.com>> wrote:
>> 
>> I've provided 2 files attached to this reply : one simple app and a 
>> routes.py file to reroute errors to said app.
>> 
>> It's exactly as described in this recipe : 
>> http://www.web2pyslices.com/slice/show/1529/custom-error-routing 
>> <http://www.web2pyslices.com/slice/show/1529/custom-error-routing>
>> 
>> 
>> Now if you install this app and apply the routes, you can go to this URL : 
>> http://127.0.0.1:8000/routes_error_test 
>> <http://127.0.0.1:8000/routes_error_test> and see a very simple form.
>> 
>> If you submit the form, Rocket will display a "HTTP: 400 BAD REQUEST" 
>> exception.
>> 
>> 
>> I've tested this with a clone from the official web2py Git.
>> 
>> 
>> 
>> Can anyone replicate this ?
>> 
>> 
>> On Tuesday, January 13, 2015 at 7:10:21 PM UTC+1, c...@cemeren.com 
>> <http://cemeren.com/> wrote:
>> Anyone, willing to support you, might need your error routing code to help 
>> you more, as you wrote that the built-in ticket system works just fine.
>> 
>> -- 
>> Resources:
>> - http://web2py.com <http://web2py.com/>
>> - http://web2py.com/book <http://web2py.com/book> (Documentation)
>> - http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source 
>> code)
>> - https://code.google.com/p/web2py/issues/list 
>> <https://code.google.com/p/web2py/issues/list> (Report Issues)
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/YgO4uJLnGzc/unsubscribe 
>> <https://groups.google.com/d/topic/web2py/YgO4uJLnGzc/unsubscribe>.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+unsubscr...@googlegroups.com 
>> <mailto:web2py+unsubscr...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
>> <web2py.app.routes_error_test.w2p><routes.py>
> 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to