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 <[email protected]> wrote:

> '/samali/*'
>
> is not a valid regex. Try
>
> routes_onerror = [
>    ('/samali.*', '/samali/default/index'),
> ]
>
>
>
> On Dec 1, 3:32 am, emmanu simo <[email protected]> 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 <[email protected]> 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 <
> [email protected]>wrote:
> >
> > > > web2py/routes.example.py
> >
> > > > -Thadeus
> >
> > > > On Mon, Nov 30, 2009 at 8:26 AM, Simo <[email protected]> wrote:
> >
> > > >> where  (in with directory)  is that file ?
> >
> > > >> On Mon, Nov 30, 2009 at 3:18 PM, mdipierro <[email protected]
> >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 <[email protected]> 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 [email protected].
> > > >>> To unsubscribe from this group, send email to
> > > >>> [email protected]<web2py%[email protected]>
> <web2py%[email protected]<web2py%[email protected]>
> >
> > > >>> .
> > > >>> 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 [email protected].
> > > >> To unsubscribe from this group, send email to
> > > >> [email protected]<web2py%[email protected]>
> <web2py%[email protected]<web2py%[email protected]>
> >
> > > >> .
> > > >> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<web2py%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to