[web2py] Re: Intersection of rows

2018-02-13 Thread Dave S
1. On Saturday, February 10, 2018 at 6:05:31 AM UTC-8, Anthony wrote: > > segq1 = db.segment.waypoint.contains(request.args[0]) >> segq2 = db.segment.waypoint.contains(request.args[1]) >> runs1 = db((db.run.id == db.segment.partof) & segq1).select("run.id", >> "run.descri

[web2py] Re: Use web2py as a reverse proxy

2018-02-13 Thread Anthony
On Monday, February 12, 2018 at 9:43:53 PM UTC-5, LoveWeb2py wrote: > > Django has a reverse proxy module... Wondering if web2py has something > similar? > https://djangopackages.org/grids/g/reverse-proxy/ > I don't think so. > I want to make web2py the single interface to multiple application

Re: [web2py] Re: Use web2py as a reverse proxy

2018-02-13 Thread Manuele Pesenti
I wrote something like that few years ago... maybe you can start from here: https://gist.github.com/manuelep/81ffe8ce57de4dc9b2d80a99c08992cc please let me know if you find any interest in it. Cheers     Manuele On 13/02/2018 13:10, Anthony wrote: On Monday, February 12, 2018 at 9:43:53 PM

[web2py] Re: Intersection of rows

2018-02-13 Thread Anthony
On Tuesday, February 13, 2018 at 4:09:02 AM UTC-5, Dave S wrote: > > That's yielding 0 rows from the run table (for my chosen args).. It looks > to me like it is requiring the segment row to match both arguments. If I > use > a/c/f/Cabot/Cabot in the url, I get the 10 rows for runs that have Ca

[web2py] How to use _onclick(quotation.id)

2018-02-13 Thread Luis Sucuc
I have the following code that is used to generate a table with fancygrid {{for quotation in quotations:}} ... amount:'{{=quotation.amount}}', convert: '{{if has_products(quotation.id):}}{{=BUTTON(T("Convert to order"), _class="fancy-grid-column-action-item btn-edit", _onclick="convertOrd

[web2py] How to have a view getting data from a long running time controller ?

2018-02-13 Thread António Ramos
Hello i have a controller that scans a lot of databases searching for some data. The view in the end gets that data a makes a dashboard. If the controller takes 10 minutes , the view is blank for 10 minutes and that is not a good thing for the user. How can i have the controller to send the data

[web2py] Re: How to have a view getting data from a long running time controller ?

2018-02-13 Thread 黄祥
just an idea, perhaps you can use loading animation (javascript, etc) in the view during waiting the long awaited data so that the user dont get bored, after the data is calculated, you can show the data in the view (replace the loading animation). best regards, stifan -- Resources: - http://

Re: [web2py] Re: How to have a view getting data from a long running time controller ?

2018-02-13 Thread António Ramos
but the idea is to get some of the data as it is being calculated in the controller. 2018-02-13 21:38 GMT+00:00 黄祥 : > just an idea, perhaps you can use loading animation (javascript, etc) in > the view during waiting the long awaited data so that the user dont get > bored, after the data is calc

Re: [web2py] Re: Use web2py as a reverse proxy

2018-02-13 Thread LoveWeb2py
Where did you use this or how did you use your version of the proxy Manuele? Thank you for sharing! Anthony - we want web2py to be the only interface to docker containers. On Tuesday, February 13, 2018 at 9:32:57 AM UTC-5, Manuele wrote: > > I wrote something like that few years ago... maybe you

[web2py] Re: only static files forbidden on centos 7.4 apache 2.4

2018-02-13 Thread Alex Beskopilny
nginx much better :) simple setup - https://www.digitalocean.com/community/tutorials/how-to-deploy-web2py-python-applications-with-uwsgi-and-nginx-on-centos-7 суббота, 10 февраля 2018 г., 17:11:43 UTC+3 пользователь lucas написал: > > hey all, > > setting up a new server on centos 7.4 and apache