[web2py] load question - only the words "loadin.."

2016-04-09 Thread Alex Glaros
I cannot get load results to appear on html page. Only the words " loading..." appear CONTROLLER def post(): comments=db(db.SuperObjectComment).select() return locals() LOAD DOCUMENT (named: post.load) {{for post in comments:}} On {{=post.created_on}} {{pass}} WHEN BROWSING TO http:

Re: [web2py] Nginx setup not as recommended

2016-04-09 Thread Richard Vézina
Can you review the script to look at what we do there : https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh On Fri, Apr 8, 2016 at 8:22 AM, 'Yan Wong' via web2py-users < web2py@googlegroups.com> wrote: > The web2py Nginx setup page ( > http://web2py.com/books/

[web2py] Re: Nginx setup not as recommended

2016-04-09 Thread Anthony
On Saturday, April 9, 2016 at 12:53:24 AM UTC-4, Yan Wong wrote: > > The web2py Nginx setup page ( > http://web2py.com/books/default/chapter/29/13/deployment-recipes#Nginx) > says to specify 'root' directory in two 'location' blocks, one for > /xxx/static and one for simply / > I don't see the s

[web2py] Re: load question - only the word "loading.." displays

2016-04-09 Thread Anthony
Has web2py.js loaded properly? If you check the browser developer tools, is the Ajax request getting sent, and if so, what is the response? Any JS errors in the browser console? Anthony On Saturday, April 9, 2016 at 3:16:56 AM UTC-4, Alex Glaros wrote: > > I cannot get load results to appear on

[web2py] Re: files vanished

2016-04-09 Thread Anthony
This is nothing web2py would have done. And very difficult to provide any help with no further details. On Saturday, April 9, 2016 at 12:53:28 AM UTC-4, Sneka R wrote: > > Hi, > I have been using web2py for few days now. All the files I have created > has vanished. What happened? > -- Resource

[web2py] Re: storing IS_IN_SET items in appconfig.ini

2016-04-09 Thread Leonel Câmara
You're doing nothing wrong, it's just the way the ConfigParser module works in python, remember that the only thing you have in a config file are strings, config files are not Python. Luckily AppConfig take has a cast argument which you can use for this. So instead of tasks = ('Call', 'Meet',

[web2py] Re: storing IS_IN_SET items in appconfig.ini

2016-04-09 Thread Anthony
On Saturday, April 9, 2016 at 10:34:00 AM UTC-4, Leonel Câmara wrote: > > You're doing nothing wrong, it's just the way the ConfigParser module > works in python, remember that the only thing you have in a config file are > strings, config files are not Python. Luckily AppConfig take has a cast

Re: [web2py] Re: files vanished

2016-04-09 Thread Michele Comitini
Is the machine on the public internet? 2016-04-09 15:06 GMT+02:00 Anthony : > This is nothing web2py would have done. And very difficult to provide any > help with no further details. > > > On Saturday, April 9, 2016 at 12:53:28 AM UTC-4, Sneka R wrote: >> >> Hi, >> I have been using web2py for f

[web2py] Issues with site in production environment

2016-04-09 Thread Jason Solack
Hello all, I am wondering if you all could sense chech my issue for me. I am creating sites that do a fair amount of analytics on large data sets and as such requests may take 30-90 seconds to get a response. My web server has 8 logical cores and once I have over 8 concurrent users they are ess

[web2py] Re: Issues with site in production environment

2016-04-09 Thread Anthony
It's generally not good to have HTTP requests taking so long. Instead, when such a request is made, you should pass the task off to a job queue (e.g., using web2py's built-in scheduler or some other similar solution) to be completed in the background. You can then have the browser poll the serve

[web2py] Re: Issues with site in production environment

2016-04-09 Thread Jason Solack
Thank you for the tip, I will look into running the math as a background service, is the task scheduler the only way to achieve that? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issu

[web2py] Re: load question - only the word "loading.." displays

2016-04-09 Thread Alex Glaros
Acting on your tip, I replaced the whole JS folder with the one from w2p Welcome app and it worked. Does the following indicate correct AJAX sending? XHR http://127.0.0.1:8000/test/default/post.load [HTTP/1.1 200 OK 859ms] The Web Console logging API (console.log, console.info, console.warn, c

[web2py] Confirm Password in Customized Registration Form

2016-04-09 Thread Jerry Liu
Hello, everyone I want to customize my user registration page a little bit, and I am using the code like below: {{=form.custom.begin}} {{=form.custom.widget.username}} ... {{=form.custom.submit}} {{=form.custom.end}} I couldn't figure out what fieldname I should put for the "confirm passw

[web2py] Re: load question - only the word "loading.." displays

2016-04-09 Thread Anthony
Looks OK -- you got a 200 response, and as you say, the component loads now. On Saturday, April 9, 2016 at 8:04:38 PM UTC-4, Alex Glaros wrote: > > Acting on your tip, I replaced the whole JS folder with the one from w2p > Welcome app and it worked. > > Does the following indicate correct AJAX se

[web2py] Re: Issues with site in production environment

2016-04-09 Thread Anthony
On Saturday, April 9, 2016 at 7:57:29 PM UTC-4, Jason Solack wrote: > > Thank you for the tip, I will look into running the math as a background > service, is the task scheduler the only way to achieve that? The web2py scheduler is probably the easiest approach, as it is built in, but there are

[web2py] Re: storing IS_IN_SET items in appconfig.ini

2016-04-09 Thread Luca
Leonel, Anthony, Thank you very much, both methods you mention work beautifully! cheers, Luca On Sunday, April 10, 2016 at 1:24:44 AM UTC+10, Anthony wrote: > > On Saturday, April 9, 2016 at 10:34:00 AM UTC-4, Leonel Câmara wrote: >> >> You're doing nothing wrong, it's just the way the ConfigPar