are you using routes.py ? On Sunday, January 17, 2016 at 11:12:16 AM UTC+1, goome wrote: > > i have this url : > http://127.0.0.1:8000/PROVE/dettaglio_aggiornamenti/SPE/SPE_2016011518051300.csv > > generated by: > > href="{{=URL(r=request,f='dettaglio_aggiornamenti',args=['SPE',ultimoFileSpe])}} > i believed that > request.args[0] == 'SPE' > and > request.args[1]== 'SPE_2016011518051300.csv' > > but i got : > """ > <type 'exceptions.IndexError'> list index out of range > > > Function argument list > > () > Code listing > > 1520. > 1521. > 1522. > 1523. > 1524. > 1525. > > 1526. > 1527. > 1528. > 1529. > > records=legacy_db(legacy_db.SFIMDB.filename==ufile).select() > return dict(records=records) > > > def dettaglio_aggiornamenti(): > tab = request.args[0] > > b=request.args[1] > > > > Variables global request <Storage {'_vars': None, 'function': > 'dettaglio_...marcello/CODE/MIEI/WEB2.10/applications/PROVE/'}> > request.args [] tab undefined > > > """ > > Why request.args turns to be undefined > >
-- 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.

