[web2py] Re: routes_onerror doesn't redirect to a custom controller when an "invalid request" error is produced

2015-07-19 Thread ermolaev . icreator
++11 how regirect if function or controller not found?? invalid function invalid controller routes.py in app_folder not worked (( routes_onerror = [ ('*/404', 'my_app/deal/index'), ... not worked ( -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github

[web2py] Re: routes_onerror doesn't redirect to a custom controller when an "invalid request" error is produced

2014-05-06 Thread Anthony
+1 On Tuesday, May 6, 2014 10:20:53 AM UTC-4, Carlos Fillol Sendra wrote: > > > Imagine that I have an application called 'myapp' running in my local > web2py server, and I include this in routes.py to manage HTTP errors using > a custom controller (/myapp/portal/error_page): > > routes_onerror

[web2py] Re: routes_onerror

2012-10-22 Thread lyn2py
I confirm that this issue still exists in Version 2.2.1 (2012-10-22 18:50:13) stable On Wednesday, September 26, 2012 5:16:47 PM UTC+8, lyn2py wrote: > > Opened an issue here: > Issue 1034 > > On Wednesday, September 26, 2012 11:16:16 AM U

[web2py] Re: routes_onerror

2012-09-26 Thread lyn2py
Opened an issue here: Issue 1034 On Wednesday, September 26, 2012 11:16:16 AM UTC+8, Massimo Di Pierro wrote: > > Please open a ticket about this. > > On Tuesday, 25 September 2012 21:36:57 UTC-5, lyn2py wrote: >> >> Can't use it in an app-

[web2py] Re: routes_onerror

2012-09-25 Thread Massimo Di Pierro
Please open a ticket about this. On Tuesday, 25 September 2012 21:36:57 UTC-5, lyn2py wrote: > > Can't use it in an app-specicfic routes. It works once I moved it to the > main routes.py > > > On Sunday, September 23, 2012 9:35:11 AM UTC+8, lyn2py wrote: >> >> I have this code in the *app-specif

[web2py] Re: routes_onerror

2012-09-25 Thread lyn2py
Can't use it in an app-specicfic routes. It works once I moved it to the main routes.py On Sunday, September 23, 2012 9:35:11 AM UTC+8, lyn2py wrote: > > I have this code in the *app-specific* routes.py > > routes_onerror = [ > ('*/*', '/myapp/static/error.html') > ] > > I reload routes, but i

[web2py] Re: routes_onerror changes error code to 200 OK

2012-09-07 Thread Jose C
On Friday, September 7, 2012 3:18:10 PM UTC+1, Massimo Di Pierro wrote: > > Can you please open a ticket and link those threads? > Done. --

[web2py] Re: routes_onerror changes error code to 200 OK

2012-09-07 Thread Massimo Di Pierro
Can you please open a ticket and link those threads? On Friday, 7 September 2012 08:53:13 UTC-5, Jose C wrote: > > > This is an old issue as per: > > https://groups.google.com/forum/#!searchin/web2py/404$20/web2py/D7zU8Ssa3OA/BqJW97wr4HwJ > and > > https://groups.google.com/forum/#!searchin/web2py

[web2py] Re: routes_onerror question

2011-09-23 Thread Dominic
Yet better would be to retain the actual HTTP status code when rewriting/redirecting. Which would mean to only change the response body into the "friendly" error page (unless the application has already provided a body in the http object), and leave the status code as it is. Someone a more trivia