Re: [web2py] Exporting html table as csv

2022-03-30 Thread mostwanted
Its a permanent html table in the view with information from different database tables. From there i wanna download it as CSV to be used in excel reports. On Wednesday, March 30, 2022 at 11:10:12 AM UTC+2 snide...@gmail.com wrote: > > On Saturday, March 26, 2022 at 2:24:06 AM UTC-7 mostwanted w

[web2py] Re: Unable to save pdf documents in my app

2022-03-30 Thread mostwanted
Thank you Clemens On Wednesday, March 30, 2022 at 9:25:13 AM UTC+2 Clemens wrote: > A few years ago I had to create a directory by web2py. I did it as follows: > from subprocess import Popen > ... > create_dir = Popen(['mkdir', '%s%s' %(destination, build_date.strftime( > '%Y-%m-%d-%H%M%S'))], st

[web2py] Strange behavior slows server down

2022-03-30 Thread Dave S
Recently, I've been seeing one of my test web2py servers get bogged down, and sometimes fail to respond to the user. When this happens, I find the web2py.log file is getting filled with lines like 2022-03-29 17:38:31,480 - web2py.scheduler.Dave-PC#8844 - DEBUG - defining tables (migrate=True)

Re: [web2py] Exporting html table as csv

2022-03-30 Thread Dave S
On Saturday, March 26, 2022 at 2:24:06 AM UTC-7 mostwanted wrote: > Thanks alot Murat, gratitude > Was http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#CSV-one-Table-at-a-time-> of any help? Are you creating a temporary table that you render the HTML from? > >

[web2py] Re: Unable to save pdf documents in my app

2022-03-30 Thread Clemens
A few years ago I had to create a directory by web2py. I did it as follows: from subprocess import Popen ... create_dir = Popen(['mkdir', '%s%s' %(destination, build_date.strftime( '%Y-%m-%d-%H%M%S'))], stderr=PIPE) Thus, if the directory is not available you can create it. I guess the return val