[web2py] Displaying images

2017-04-05 Thread Dave S
I have a bunch of pix that I want to display, which are not in the uploads directory of the application. My options appear to be: - copy them to the static folder (or a subfolder) and have URL() work for them - set up streamio on each so I can read them from an arbitrary filesystem location -

[web2py] NGINX 1.6 ERROR 502 BAD GATEWAY

2017-04-05 Thread LC LC
Hi, I have followed the tuto http://web2py.com/books/default/chapter/29/13/deployment-recipes#Nginx and i have the error : 2017/04/05 11:50:39 [crit] 15056#0: *1 connect() to unix:///tmp/web2py.socket failed (2: No such file or directory) while connecting to upstream, i tried a touch /tmp/web

[web2py] Re: NGINX 1.6 ERROR 502 BAD GATEWAY

2017-04-05 Thread 黄祥
might we know what kind of os did you use? what step did you take to reproduce the problem? i face the same problem before, i suggest you to take a look of the scripts that ship with web2py app best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - ht

[web2py] Re: Why the response.flash can't be dismissed here?

2017-04-05 Thread Marlysson Silva
Do you altered something ? Em quarta-feira, 5 de abril de 2017 03:14:33 UTC-3, Mike Stephenson escreveu: > > I am using this layout from web2py's official > site: web2py.plugin.layout_Chasmogamous > > However I see that the response.flash can't be dismissed. > I guess there is a problem with thi

Re: [web2py] Sites Powered by web2py

2017-04-05 Thread Alex
Thanks Fabiano. Each subdomain refers to an own application, each with it's own database since the breeds are not related to each other. Alex On Wednesday, April 5, 2017 at 2:52:00 AM UTC+2, Fabiano Almeida wrote: > > Hi Alex! > Great design ! Congratulations! > > I see use of subdomain to bree

Re: [web2py] Sites Powered by web2py

2017-04-05 Thread Fabiano Almeida
Thanks Alex! 2017-04-05 11:43 GMT-03:00 Alex : > Thanks Fabiano. > > Each subdomain refers to an own application, each with it's own database > since the breeds are not related to each other. > > Alex > > On Wednesday, April 5, 2017 at 2:52:00 AM UTC+2, Fabiano Almeida wrote: >> >> Hi Alex! >> Gr

[web2py] Re: Questions about production environment / large applications

2017-04-05 Thread Áureo Dias Neto
2017-04-04 16:38 GMT-03:00 Alex Glaros : > if migrate = True, slows web2py down, forces web2py to check all tables to > make sure they are created. Only use when defining new tables or modifying > a table > > if tables already defined, then set migrate = False > > > https://groups.google.com/for

[web2py] OT: Print view fail

2017-04-05 Thread Dave S
There's a site I consider useful for news on SSL/TLS issues. https://www.feistyduck.com/> I originally went there because of https://www.feistyduck.com/books/openssl-cookbook/> But they have a newsletter with the issue reports: https://www.feistyduck.com/bulletproof-tls-newsletter/issue_26_google

[web2py] Re: Why the response.flash can't be dismissed here?

2017-04-05 Thread Anthony
On Wednesday, April 5, 2017 at 2:14:33 AM UTC-4, Mike Stephenson wrote: > > I am using this layout from web2py's official > site: web2py.plugin.layout_Chasmogamous > > However I see that the response.flash can't be dismissed. > I guess there is a problem with this snippet in its layout.html: > {{=

[web2py] Re: smartgrid with linked_tables and constraints broke the links

2017-04-05 Thread Anthony
> > Pardon me for asking stupid question, what does SQLFORM.smartgrid(., > args=request.args[:1], ...) really do? you mentioned in earlier post that > args must be a list, and it preserves the 1st argument of URL for > application specific use. Does it tell web2py whatever url it creates, i

[web2py] Re: Cassandra and web2py

2017-04-05 Thread Massimo Di Pierro
I do not know cassandra well enough. You can use connection = cache.ram('cassandra', lambda: establish_connection(), None) so the connection is cached in ram. The DAL has pooling and works better but nobody wrote a cassandra adapter. Perhaps you could try that. On Wednesday, 29 March 2017 23:3

[web2py] Re: Create Register on Restapi

2017-04-05 Thread Massimo Di Pierro
there is a pending PR that will expose an API. One approach is to do it manually as follows: 1) App POSTs username/password which uses web2py auth.login_bare() 2) store the user id (and only the user id) in a session 3) configure web2py to store the session in an encrypted cookie so no serve

Re: [web2py] Re: web2py and python3

2017-04-05 Thread JorgeH
If what prevents the release of web2py python 3 ready are small details , why not release 2 versions, one for python 3, and the other one for python 3. Eventually, all the libraries will be ported to Py 3, or will be ways to sort that out. just saying On Monday, April 3, 2017 at 3:59:52 PM UT

Re: [web2py] Re: Questions about production environment / large applications

2017-04-05 Thread Carlos Zenteno
@Jim Do you do this more for private control of your app(s) and data or for efficiency? What were your considerations to go this route instead of cloud infrastructure like AWS/Pytnonanywhere/Heroku/etc ? On Tuesday, April 4, 2017 at 8:38:31 AM UTC-5, Jim S wrote: > > The advantages would be mor

Re: [web2py] Sites Powered by web2py

2017-04-05 Thread Dave S
On Wednesday, April 5, 2017 at 7:43:57 AM UTC-7, Alex wrote: > > Thanks Fabiano. > > Each subdomain refers to an own application, each with it's own database > since the breeds are not related to each other. > > Alex > Are you using the same schema for each database? I only sampled a couple o

Re: [web2py] Sites Powered by web2py

2017-04-05 Thread Dave S
On Wednesday, April 5, 2017 at 2:18:38 PM UTC-7, Dave S wrote: > > > > On Wednesday, April 5, 2017 at 7:43:57 AM UTC-7, Alex wrote: >> >> Thanks Fabiano. >> >> Each subdomain refers to an own application, each with it's own database >> since the breeds are not related to each other. >> > Seems l

Re: [web2py] Re: Questions about production environment / large applications

2017-04-05 Thread Jim S
Here is a quick list of reasons why we host 1. Data sync - we sync data to/from a number other platforms that we host here as well, HR/Payroll (MS SQL), Accounting/Inventory (AS/400), Product Development (Pervasive). Would be slower if we were syncing to the cloud and we get killed on bandwidt

Re: [web2py] Sites Powered by web2py

2017-04-05 Thread Alex
Am Mittwoch, 5. April 2017 23:18:38 UTC+2 schrieb Dave S: > > > > On Wednesday, April 5, 2017 at 7:43:57 AM UTC-7, Alex wrote: >> >> Thanks Fabiano. >> >> Each subdomain refers to an own application, each with it's own database >> since the breeds are not related to each other. >> >> Alex >> > >

Re: [web2py] Sites Powered by web2py

2017-04-05 Thread Alex
> > Seems like a good idea to ask how you are using the routes.py modules. > One top-level one, at each app-level, or none? > Routing is basically handled at the webserver level. routes.py is only used for standard in/out route and error handling. > Also, I missed the shortcut/link back up

[web2py] GAE Datastore conceptual question - different fields in different rows of a table

2017-04-05 Thread Karoly Kantor
In GAE Datastore I can put any arbitrary properties into an entity of an entity kind (in SQL terms, I can put any field into a table row), without having to redefine / migrate the table. This GAE datastore feature is very useful for my specific purposes. Is there a way I can make use of this GA

Re: [web2py] Sites Powered by web2py

2017-04-05 Thread Dave S
On Wednesday, April 5, 2017 at 2:50:12 PM UTC-7, Alex wrote: > > Seems like a good idea to ask how you are using the routes.py modules. >> One top-level one, at each app-level, or none? >> > > Routing is basically handled at the webserver level. routes.py is only > used for standard in/out rou

Re: [web2py] Re: web2py and python3

2017-04-05 Thread Dave S
On Wednesday, April 5, 2017 at 1:15:55 PM UTC-7, JorgeH wrote: > > If what prevents the release of web2py python 3 ready are small details , > why not release 2 versions, one for python 3, and the other one for python > 3. > > Eventually, all the libraries will be ported to Py 3, or will be way

[web2py] Re: Create Register on Restapi

2017-04-05 Thread Dave S
On Wednesday, April 5, 2017 at 12:13:46 PM UTC-7, Massimo Di Pierro wrote: > > there is a pending PR that will expose an API. One approach is to do it > manually as follows: > > 1) App POSTs username/password which uses web2py auth.login_bare() > 2) store the user id (and only the user id) i

[web2py] web2py install on AWS with IIS

2017-04-05 Thread weheh
I am trying to get web2py to run behind IIS on an AWS EC2 instance. Can anyone help me get this running? I have followed the deployment instructions to the letter but getting nowhere. I have budget to get this done. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] Re: smartgrid with linked_tables and constraints broke the links

2017-04-05 Thread Rudy
Anthony, I can't thank you enough for all your advises and help, not only i understand more about the grid / smartgrid, but the use of request.args now. I appreciate a lot of your time. Rudy On Thursday, April 6, 2017 at 2:57:00 AM UTC+8, Anthony wrote: > > Pardon me for asking stupid question,