[web2py] Re: Adding the number of day to a date

2015-02-01 Thread Anthony Smith
Hi Richard the trigger is T2.completed_date+T1.with_holding = T2.withhold_until I am reasonably new to web2py, can get though most things, but this has me. cheers Anthony S On Sunday, 1 February 2015 18:42:34 UTC+11, Richard D wrote: Anthony S What is the trigger for this update of T2

[web2py] Re: Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Louis Amon
Update: I've tried running 2 dynos to see if splitting traffic in two would reduce the slope of my memory leak, and also to see if the garbage collector would somehow work better. It seems not : 2015-02-01T09:23:50.049734+00:00 heroku[web.1]: *source**=web.1* dyno=heroku

[web2py] Re: Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Anthony
gluon.main.wsgibase calls gluon.main.serve_controller, which calls gluon.compileapp.run_models_in, which executes the models. Anthony On Sunday, February 1, 2015 at 4:18:05 AM UTC-5, Louis Amon wrote: I have a web2py server running on heroku. So far my server had little traffic, and Heroku

[web2py] ckeditor : how to make read only, how to remove the toolbar in a dynamic way

2015-02-01 Thread Serge Bourgeois
I just implemented the ckeditor plugin. It looks great, but I need help (example if possible) showing how to hide the ckeditor toolbar for some text fields, for instance in a controller with a smartgrid, where request.args does not contain 'now' nor 'edit'. Thanks in advance ! Serge --

[web2py] Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Louis Amon
I have a web2py server running on heroku. So far my server had little traffic, and Heroku being a cloud PaaS service means they put processes to sleep if they're not used for a while. Because of that, I never really noticed that the memory signature of my application was growing at every

[web2py] Re: Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Louis Amon
Udate 2: I've tried switching from the Rocket server to Gunicorn : the memory's still increasing and quotas are reached in a matter of hours. BTW I'm running web2py version 2.9.11. Has the new patch fixed anything that might help with memory leaks ? Should I try updating my server ? --

[web2py] Re: Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Leonel Câmara
Do you have pool_size defined? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

[web2py] syntax error in update command

2015-02-01 Thread Alex Glaros
anyone see why this update line doesn't work? db(db.auth_user.id == auth.user_id).update(auth_user.last_logged_in=request. now) raises this error: type 'exceptions.SyntaxError' keyword can't be an expression but this works in the Database Administration (appadmin) with table auth_user

[web2py] Re: Error while trying to run web2py in startup linux

2015-02-01 Thread Aydin S
I look at the journal: sudo[1519]: pam_unix(sudo:session): session closed for user root web2py[1597]: Starting Web Framework: web2pychown: invalid user: `web2py' web2py[1597]: start-stop-daemon: user 'web2py' not found web2py[1597]: failed! systemd[1]: web2py.service: control process exited,

[web2py] Re: Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Leonel Câmara
If you have pool_size defined can you tell me if putting pool_size=0 in your DAL solves this problem? Anyway I got really interested in this, for some unknown to me reason, and decided to create a *VERY CRUDE* decorator to memory check your controller functions for leaks, I guess with time we

[web2py] Re: Run web2py in public IP without explicit IP address - linux

2015-02-01 Thread Aydin S
Thanks that was useful. On Friday, 30 January 2015 22:34:30 UTC-5, Massimo Di Pierro wrote: This should not be the case. http://stackoverflow.com/questions/20778771/what-is-the-difference-between-0-0-0-0-127-0-0-1-and-localhost On Friday, 30 January 2015 16:30:26 UTC-6, Aydin S wrote:

Re: [web2py] Trying to run web2py from linux, all ports fail

2015-02-01 Thread Aydin S
Yes, I got it thanks. On Friday, 30 January 2015 09:16:51 UTC-5, Michele Comitini wrote: One trick that could somewhat accelerate the release of a port not properly closed by a server is trying to connect to it. for instance: nc 127.0.0.1 8000 and then CTRL-C the trick awakes the

Re: [web2py] Re: Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Louis Amon
No I do not have pool_size defined. Can it help ? From: Leonel Câmara Sent: ‎Sunday‎, ‎1‎ ‎February‎ ‎2015 ‎16‎:‎26 To: web2py@googlegroups.com Do you have pool_size defined? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Error while trying to run web2py in startup linux

2015-02-01 Thread Aydin S
Hi, I finally got to know that web2py is best to be used in the startup using system level configuration not as cron. I gave up running it from crontab because it didn't work. I read http://web2py.com/books/default/chapter/29/13#One-step-production-deployment and implemented what is said in

Re: [web2py] Re: Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Leonel Câmara
I was just curious if there was some bug where if you had a pool size then the DAL would leak memory it appears not. Try the decorator I posted in the other thread. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Memory leaks in web2py : how do you track them ?

2015-02-01 Thread Paolo Valleri
Hi, the garbace collector is called once every 100 requests. See https://github.com/web2py/web2py/blob/5a0ee722605164f1eae4064d0d1dd0d72b5eb14b/gluon/main.py#L197 In addition try to pack a very basic app which can reproduce the issue, we'll have more info about what is going on wrong in your

Re: [web2py] Why web2py does not run on startup using crontab

2015-02-01 Thread Manuele Pesenti
Il 31/01/15 20:43, Aydin S ha scritto: I've read the group for possible solutions, I tried to enable -Y, -C and -J but no help. Any idea that can help? I think you need -a anypassword option in order not to let start the graphical interface of the web server... you can find the manual