Big thank you! This works.

One little detail emerged though. Now that  I replaced the pattern 
router.py (having my line in routes_out as above) in my site root with the 
parameter rewrite method my URL shows 'default':

https://192.168.1.25:8000/stock 
<https://192.168.1.25:8000/stock/showcase/asset/2017-Some-fridge?id=79&_signature=c2e7899530c858f1b478cb7ea5f03bb30d4f68e1>
/default
and I was aiming for:
https://192.168.1.25:8000/stock 
<https://192.168.1.25:8000/stock/showcase/asset/2017-Some-fridge?id=79&_signature=c2e7899530c858f1b478cb7ea5f03bb30d4f68e1>

I added a line: controllers='DEFAULT'

routers = dict(
    stock=dict(
        controllers='DEFAULT',
        default_function='index',
        functions=dict( 
            default=['index', ...],
            showcase=['index', ...]
        )
    ),
)

Thanks for your time

On Monday, August 28, 2017 at 11:19:09 AM UTC-4, Anthony wrote:
>
> On Monday, August 28, 2017 at 10:05:27 AM UTC-4, [email protected] 
> <javascript:> wrote:
>>
>> No, the name 'index' withing 'showcase' is idle.
>>
>
> Then just use the parameter-based rewrite system with a configuration like 
> this:
>
> routers = dict(
>     stock=dict(
>         default_function='index',
>         functions=dict(
>             default=['index', ...],
>             showcase=['index', ...]
>         )
>     ),
> )
>
> Then simply change the "asset" function to "index".
>
> Anthony
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to