Re: [web2py] In a custom html form of SQLFORM in web2py, how to copy the request argument of the url into a form field input?

2020-07-07 Thread AGRogers
OK. After you declare the form but before you process it you can set the form.vars.FieldName property. I think that might help. On Wed, 8 Jul 2020, 4:36 am Anusha Narayan, wrote: > Yeah! The first question, is what I am talking about. > > On Mon, 6 Jul 2020, 8:56 pm AGRogers, wrote: > >> Do

[web2py] Session / Originating IP

2020-07-07 Thread clara
Hello, I store sessions in database, and I see that originating IP is one the fields in the table along with the session unique_key. Let's assume I established a new session with my web2py site, let's say from my mobile, today. Session expires in a month-time. If I connect to the site

Re: [web2py] In a custom html form of SQLFORM in web2py, how to copy the request argument of the url into a form field input?

2020-07-07 Thread Anusha Narayan
Yeah! The first question, is what I am talking about. On Mon, 6 Jul 2020, 8:56 pm AGRogers, wrote: > Do you mean you want to set the EVENT_ID so that it's already selected > when the form opens? > > Or are you saying that after you select the Event and submit the form you > get an error? > > On

[web2py] Re: streamed pyfpdf is stored with wrong fileencoding when using python3

2020-07-07 Thread Armin Würtenberger
Thank you for your response, I tried as suggested, but did not succeed. [...] from io import BytesIO [...] response.headers["Content-Type"]=contenttype(".pdf") # version 1 #response.headers["Content-Type"]=contenttype("application/pdf") # version 2