Re: [web2py] Re: Pass python list back to controller

2013-08-16 Thread Ykä Marjanen
In my case I generate unique links to participants that are sent via email. In this case I cannot use session to store them, as the user clicks the links without registering to a website and can take several days before registering. I had an option to either pass all parameters in the link args

Re: [web2py] Re: Pass python list back to controller

2013-08-15 Thread Richard Vézina
ids = [1, 2, 3] redirect(URL(c='test', f='side_by_side', args=(request.args(0)), vars=dict(ids=ids))) ids = request.vars.ids Work as well... The url look like that : test/side_by_side/table?ids=1&ids=2&ids=3 I have use session.ids before, but I need to pass a list of id by the url in order to

[web2py] Re: Pass python list back to controller

2013-08-08 Thread Kyle Flanagan
This worked well. Thanks. On Thursday, July 18, 2013 11:18:23 AM UTC-5, Ykä Marjanen wrote: > > Hi, > > If I understood correctly, you could use 'session' to save the list, so > you don't have to pass it back and forth to the controller. > > E.g. session.serials = [] and then session.serials.appe

[web2py] Re: Pass python list back to controller

2013-07-18 Thread Ykä Marjanen
Hi, If I understood correctly, you could use 'session' to save the list, so you don't have to pass it back and forth to the controller. E.g. session.serials = [] and then session.serials.append(x) Ykä On Thursday, July 18, 2013 6:55:52 PM UTC+3, Kyle Flanagan wrote: > > What's the best way to