well routes on_error is what we are talking about.....

-Thadeus




On Tue, Dec 1, 2009 at 2:48 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:

> routes_onerror has a different syntax tha routes_in/out, it is not
> regex
>
> On Dec 1, 10:59 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> > why does */* work then?
> >
> > And the example has /init/* and that does not work. The example
> > routes.example.py needs updated then.
> >
> > -Thadeus
> >
> > On Tue, Dec 1, 2009 at 8:59 AM, mdipierro <mdipie...@cs.depaul.edu>
> wrote:
> > > '/samali/*'
> >
> > > is not a valid regex. Try
> >
> > > routes_onerror = [
> > >    ('/samali.*', '/samali/default/index'),
> > > ]
> >
> > > On Dec 1, 3:32 am, emmanu simo <scommes...@gmail.com> wrote:
> > > > my local app name is : samali
> >
> > > > I create a file : web2py\routes.py
> >
> > > > and edit it:
> > > > routes_onerror = [
> > > >     ('/samali/*', '/samali/default/index'),
> > > > ]
> >
> > > > whent I request this Url :http://localhost:8000/samali/ccfff
> > > > I have also : invalid controller
> >
> > > > did not work
> >
> > > > On 1 Dic, 05:22, 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>
> <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com>
> >
> > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com>
> <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@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>
> <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com>
> >
> > > <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@googlegroups.com>
> <web2py%252bunsubscr...@googlegroups.com<web2py%25252bunsubscr...@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<web2py%2bunsubscr...@googlegroups.com>
> <web2py%2bunsubscr...@googlegroups.com<web2py%252bunsubscr...@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<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