I don't have an /init application :)

Massimo, I sent you a patch that passes the requested_uri along to the error
handling page.

try_redirect_on_error will append the request_uri along to the redirected
url. My idea behind this is that if you have a blog, and a person trys going
to a non-existent post, instead of just displaying "sorry", you can display,
sorry, did you mean? and list some search results based on the url they
tried.

I need this for migrating my wordpress blog to web2py as well :) If i want
my old links to stay useful.

http://127.0.0.1:8000/thadeusb/default/error?code=400&ticket=None&requested_uri=/pygame-font

-Thadeus




On Mon, Nov 30, 2009 at 10:29 PM, Thadeus Burgess <thade...@thadeusb.com>wrote:

> Just a note, I cannot replicate this on my server, there must be something
> within my local instance of web2py.
>
> -Thadeus
>
>
>
>
>
> On Mon, Nov 30, 2009 at 10:22 PM, Thadeus Burgess 
> <thade...@thadeusb.com>wrote:
>
>> When I use the following in my routes.py
>>
>> routes_onerror = [
>>     ('*/*', '/init/default/index'),
>> ]
>>
>> The process hits 100% cpu and freezes the machine, consumes ram, and
>> spikes the local network.
>>
>> Infinite loop in there somewhere?
>>
>>
>> -Thadeus
>>
>>
>>
>>
>>
>> On Mon, Nov 30, 2009 at 10:11 PM, Thadeus Burgess 
>> <thade...@thadeusb.com>wrote:
>>
>>> web2py/routes.example.py
>>>
>>> -Thadeus
>>>
>>>
>>>
>>>
>>>
>>> On Mon, Nov 30, 2009 at 8:26 AM, Simo <scommes...@gmail.com> wrote:
>>>
>>>> where  (in with directory)  is that file ?
>>>>
>>>>
>>>> On Mon, Nov 30, 2009 at 3:18 PM, mdipierro <mdipie...@cs.depaul.edu>wrote:
>>>>
>>>>> Read the file routes.example.py
>>>>>
>>>>> You can do what you need by renaming this file route.py and
>>>>> customizing routes_onerror.
>>>>>
>>>>> Massimo
>>>>>
>>>>> On Nov 30, 3:55 am, emmanu simo <scommes...@gmail.com> wrote:
>>>>> > If a user put a bad Url , I have an INVALID REQUEST/CONTROLLER
>>>>> > I want to  automaticly redirect that request to a home page or a last
>>>>> > page done.
>>>>> > how can I do it ?
>>>>>
>>>>> --
>>>>>
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "web2py-users" group.
>>>>> To post to this group, send email to web...@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/web2py?hl=en.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Emmanuel Simo
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "web2py-users" group.
>>>> To post to this group, send email to web...@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/web2py?hl=en.
>>>>
>>>
>>>
>>
>

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to