[web2py] Re: Forms with readonly fields

2018-09-25 Thread Dan Carroll
Here is a simple fix if there hasn't been one added to Web2Py yet. Use the Bootstrap readonly attribute. example: form.element('input', _id='RentalTransactionMaster_TotalAmt')['_readonly']='' Placed in controller after the form = SQLFORM(...) declaration. On Friday, March 31, 2017 at 5:25:5

[web2py] Re: Future of web2py

2018-10-05 Thread Dan Carroll
Not sure if this thread is finished yet but I would like to add my requests for the new framework. * Something with a mobile first perspective would be nice. * Data and page caching on client side. * And offline capabilities. That said, it goes without saying it would need some kind of syncing

[web2py] Re: Using Stripe's Checkout w/ web2py

2018-10-10 Thread Dan Carroll
For those looking for how to get Stripe to work with Web2Py, follow the API from Stripe. The getting started documentation with the checkout script works. Make sure you are following the Python code section. (https://stripe.com/docs/quickstart) Hint: Place the checkout script inside of a web2py

[web2py] Re: SQLFROM.grid sumarize option - totalization

2018-10-11 Thread Dan Carroll
I am also looking for a way to set a total in a parent (master) form from a sub-form (detail) coded in SQLFORM.grid. On Thursday, October 11, 2018 at 8:11:39 AM UTC-4, Ari Lion BR Sp wrote: > > Hi, > > a long time already I ask myself why SQLFROM.grid doesnt have a sumarize > option, mainly ba

[web2py] Need to Access Static Images with HTTP

2018-10-12 Thread Dan Carroll
Okay, here is an odd one. I have two systems configured more or less the same. One is for development and one for production. Both servers are configured with ubuntu, nginx, and uwsgi. Configured identically, except of course the IP addressing. The development server will return static files fr

[web2py] Re: How can i change background picture of web2py site

2017-10-23 Thread Dan Carroll
It is not that easy. I replace the background.jpg with another image and the old image replaces my new image. Over and over. Very frustrating. On Wednesday, June 22, 2016 at 2:56:21 PM UTC-4, Dave S wrote: > > > > On Wednesday, June 22, 2016 at 10:23:56 AM UTC-7, Filip Bogdanovski wrote: >> >> T

[web2py] Re: Error importing csv file in python3.6

2020-02-23 Thread Dan Carroll
It Works! YESSS!!! Worked in my code. Now to fix the import csv function in appadmin. Using version 2.18.5 of web2py with python 3.7.0 on pythonanywhere. On Friday, April 26, 2019 at 1:56:39 AM UTC-4, nbac...@bancointernacional.cl wrote: > > I had a similar issue. > I solve it doing this: > >

[web2py] Re: Error importing csv file in python3.6

2020-02-23 Thread Dan Carroll
This works in your own code using import_from_csv_file as well as in appadmin, all for python 3. On Friday, April 26, 2019 at 1:56:39 AM UTC-4, nbac...@bancointernacional.cl wrote: > > I had a similar issue. > I solve it doing this: > > f = request.vars.csvfile.file > import io > file = io.Text