[web2py] Is it possible to write to session variables from Web2py modules?

2021-01-20 Thread at
Is it possible to write to session variables from Web2py modules? -- 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 a

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
>So, are you trying to pass a company name through a URL? Seems to me that would be problematic. Yes, that's what I'm trying and I was hoping there is a easy fix. Thank you for your help! I think I will stop here for now. On Wednesday, January 20, 2021 at 3:52:04 PM UTC-6 Jim S wrote: > S

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Jim Steil
So, are you trying to pass a company name through a URL? Seems to me that would be problematic. If that is what you're doing maybe you need to look at urllib unquote_plus. I use that in some cases to build valid URLs where the text can be unpredictable. Is there anything else you could pass oth

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
ok, so this is four parameters I'm passing.. J2831 AL04 36105 HYUNDAI MOTOR MANUFACTURI then list.xxx or XML(list.xxx) actually shows the same result. It replaced blank with "_"... that's why I failed to get the data from the database because the original value doesn't have "_". I also tried

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Jim Steil
So, if you would do a for look around 'lists' and print out the field values, what would that look like? Also, is there a difference if you also print it out with the XML function wrapped around it? On Wed, Jan 20, 2021 at 2:03 PM Omi Chiba wrote: > here's the controller for enduser_index view.

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
here's the controller for enduser_index view. It's like I have this index view to list and lick "View" button to pass the variable and go to enduser_view page. def enduser_index(): response.title = 'List' response.subtitle = 'End User Code' form=SQLFORM.factory(Field('search'))

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Jim Steil
I thought you were trying to get it working in this html tag: View< I don't see the 'list' variable in the controller... Where is that coming from? -Jim On Wed, Jan 20, 2021 at 1:49 PM Omi Chiba wrote: > I'm not sure how to check... > > This is my controller for view page > > def enduser_vi

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
I'm not sure how to check... This is my controller for view page def enduser_view(): response.title = 'View' response.subtitle = 'End User Code' request.args(0) or redirect (URL('enduser_index')) record = db.EDXUSF00(db.EDXUSF00.USDIID==request.args(0) and db.EDXUSF00.USDICD

Re: [web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Jim Steil
I don't think it will help to change the controller side. In the controller can you print out the values and also print out the XML(value) and see what the difference is? -Jim On Wed, Jan 20, 2021 at 10:36 AM Omi Chiba wrote: > I added XML. It doesn't show the error but cannot get the value an

[web2py] Re: Pass/Receive args contains "&" in the value

2021-01-20 Thread Omi Chiba
I added XML. It doesn't show the error but cannot get the value and shows the records... should we changed the controller side too? View View Controller record = db.EDXUSF00(db.EDXUSF00.USDIID==request.args(0) and db.EDXUSF00.USDICD==request.args(1) and db.EDXUSF00.USYUB5==request.args(2