[web2py] Re: Numpy 1.13.0 renders web2py via apache https irresponsive

2017-07-04 Thread Oliver Holmes
Am Dienstag, 4. Juli 2017 00:49:19 UTC+2 schrieb Leonel Câmara: > > This has nothing to do with web2py, this is an issue between mod_wsgi > which uses sub-interpreters and numpy which really doesn't like that and > may become deadlocked. > > The best solution is simply not to use mod_wsgi. >

[web2py] Re: Numpy 1.13.0 renders web2py via apache https irresponsive

2017-07-04 Thread Leonel Câmara
It's not a recent problem see: https://github.com/numpy/numpy/issues/3837 https://github.com/numpy/numpy/issues/8559 And see: http://modwsgi.readthedocs.io/en/develop/user-guides/application-issues.html#multiple-python-sub-interpreters You were just being lucky before. Note that you can supposedl

[web2py] DAL pg8000 adapter and JSON type

2017-07-04 Thread lyn2py
I'm using Postgresql, with the pg8000 adapter. One of the fields I have is of 'json' type Field('json_string','json'), And each time I restart the web2py server, this error will show one time. Refreshing the page the second time makes it go away: ProgrammingError: (u'ERROR', u'ERROR',

Re: [web2py] Re: SQLFORM.grid with selectable checkboxes that export CSV files on submit

2017-07-04 Thread 'Matthew J Watts' via web2py-users
thanks for your help Peter! Actually, i've been playing around with it but need some into on the functions/views too! 'The report_functions should point to valid report functions/views that you have created (I can provide some info on this if needed)' On Tue, Jul 4, 2017 at 4:37 AM, Peter

[web2py] Re: Numpy 1.13.0 renders web2py via apache https irresponsive

2017-07-04 Thread Oliver Holmes
Am Dienstag, 4. Juli 2017 11:02:50 UTC+2 schrieb Leonel Câmara: > > It's not a recent problem see: > https://github.com/numpy/numpy/issues/3837 > https://github.com/numpy/numpy/issues/8559 > > And see: > > http://modwsgi.readthedocs.io/en/develop/user-guides/application-issues.html#multiple-python

Re: [web2py] Re: SQLFORM.grid with selectable checkboxes that export CSV files on submit

2017-07-04 Thread Peter
Based on previous code, the companies query/function would look something like... def csv_companies(): # assumes there is a table called 'company'with field 'name' query = db.company.id > 0 companies = db(query).select(db.company.id,

Re: [web2py] Re: Blockquote in markmin

2017-07-04 Thread Martin Weissenboeck
Ok, maybe my explanation was too long. Let's look at a simple example: I have installed https://mdipierro.pythonanywhere.com/examples/static/web2py_win.zip Now a controller: def mmtest(): t=""" --- This is an ordered list: + Item 1 + Item 2 -:blockquoteclass[blockquot

Re: [web2py] Re: SQLFORM.grid with selectable checkboxes that export CSV files on submit

2017-07-04 Thread 'Matthew J Watts' via web2py-users
Thanks Peter - that was very helpful indeed. I didn't manage to get a 'download to CSV from checkboxes' function working, don't quite get why as i managed to set up a 'download links from rows ' function in the SQLFORM.grid. Here is the code for you just in case it is any help for you in the fut

Re: [web2py] Re: Any ideas on how to prepare web2py apps for GDPR

2017-07-04 Thread António Ramos
Something about cookies and GDPR. https://www.cookielaw.org/blog/2016/5/13/the-gdpr,-cookie-consent-and-customer-centric-privacy/ 2017-06-03 0:06 GMT+01:00 Carlos Kitu : > Hi Antonio, > I don't know the UK regulations about GDPR, but I know the spanish ones, > and in this subject both countries

Re: [web2py] Re: SQLFORM.grid with selectable checkboxes that export CSV files on submit

2017-07-04 Thread Peter
Glad you got something out of it Matt! I decided to try and follow it through to the end but couldn't. (I did get the grid check-boxes working but only if I selected just one report at a time). Your solution with the links is more user friendly (one click generates the report) if you haven't

[web2py] Re: FOREIGN KEY constraint failed

2017-07-04 Thread mostwanted
Hey Santi, how do i go about doing that, deleting all the tables in the database backup folder? On Tuesday, July 4, 2017 at 12:08:44 AM UTC+2, Santiago Cartasegna wrote: > > Go to the database folder backup and delete all the .tables. Perhaps a > change was not reflected on the creation of the t

[web2py] web2py 2.15.0b1

2017-07-04 Thread Massimo Di Pierro
Please help us test the new web2py: https://mdipierro.pythonanywhere.com/examples/static/nightly/web2py_src.zip https://mdipierro.pythonanywhere.com/examples/static/nightly/web2py_osx.zip https://mdipierro.pythonanywhere.com/examples/static/nightly/web2py_win.zip Personally and on behalf of the