Thanks but it's not the question. I wanted to pass some arguments to 
function like this...

('Scanner operativi', False, URL('default', 'lista_asset', *args='SC*')),
            
but when I use in the function the system told me in session.flash "Not 
authorized" and doesn't show me what I want... Why?

The function is like this

def lista_asset():
    tipologia = request.args(0)
    if tipologia == 'SC':
        query = db((db.asset.tipo=='SC') & (db.asset.is_active==True))
    else:
        query = db.asset.is_active==True
    db.asset.datadismissione.readable = False
    grid = SQLFORM.grid(query, 
fields=[db.asset.seriale,db.asset.nome,db.asset.uo], details=False, 
create=False, editable=False, deletable=False, maxtextlength=40)
    return locals()

Il giorno mercoledì 25 gennaio 2017 16:21:20 UTC+1, Leonel Câmara ha 
scritto:
>
> What do you mean?
>
> The menu is usually defined in the menu.py model, which puts the menu in 
> response.menu. You can either change the model file to change the menu 
> depending on "arguments" or you can change response.menu in the controller 
> where you want it changed.
>

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to