Re: [web2py] need code to update db from view to controller.

2016-08-11 Thread Massimiliano
Doesn’t update_records belong to *row* instead of *rows*? On Thu, Aug 11, 2016 at 2:10 PM, madhu nomula wrote: > I am unable to update . > > In view its throwing issue: only row.update_record() code throwing > error. unable to capture in view > > Please let me know if

Re: [web2py] need code to update db from view to controller.

2016-08-11 Thread madhu nomula
I am unable to update . In view its throwing issue: only row.update_record() code throwing error. unable to capture in view Please let me know if there is any issue below code: def update_timesheet(): totalrecords=0; i=0; rows = db(

Re: [web2py] Re: jquery-pjax

2016-08-11 Thread António Ramos
pjax without jquery dependency https://github.com/MoOx/pjax 2016-08-02 22:11 GMT+01:00 Dave S : > > > On Tuesday, August 2, 2016 at 12:04:08 PM UTC-7, Ricardo Pedroso wrote: >> >> On 8/2/16, António Ramos wrote: >> > any demo with web2py? >> >> I'm

[web2py] Re: web2py in production mode and improving execution time

2016-08-11 Thread Ron Chatterjee
May be this will help: https://blog.mozilla.org/blog/2016/08/04/mozilla-awards-585000-to-nine-open-source-projects-in-q2-2016/ Anyone used PyPy, the Python JIT compiler with web2py project. How was the speed improvement (req/s)? On Thursday, August 11, 2016 at 10:57:38 AM UTC-4, Ron Chatterjee

[web2py] Trojan exploit Redis

2016-08-11 Thread Richard
Hello, Found this, thought it should be spread : https://linux.slashdot.org/story/16/08/10/237230/linux-trojan-mines-for-cryptocurrency-using-misconfigured-redis-servers -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

[web2py] web2py in production mode and improving execution time

2016-08-11 Thread Ron Chatterjee
I use MATLAB a lot and they have something call profile. http://www.mathworks.com/help/matlab/ref/profile.html That allows to profile an application based on execution time (for each function/def) and it gives an alternative to figure out if any of the modules need to be converted to C/C++ for

[web2py] Re: web2py in production mode and improving execution time

2016-08-11 Thread Anthony
https://docs.python.org/2/library/profile.html On Thursday, August 11, 2016 at 10:57:38 AM UTC-4, Ron Chatterjee wrote: > > I use MATLAB a lot and they have something call profile. > http://www.mathworks.com/help/matlab/ref/profile.html > > That allows to profile an application based on

[web2py] Making a filter to filter a collection in the view

2016-08-11 Thread António Ramos
Hello in a code like this {{for row in rows:}} {{=row.param1}} {{pass}} i would like to have a way to have the user filter the result based on an input box. I like the angular and vue style of ng-repeat or v-for="row in rows" to dinamically filter the rows without having to ask again the

[web2py] Re: SQLFORM.grid: search in a list:reference field does not work

2016-08-11 Thread St. Pirsch
Hello, has this already been updated. It seems that in the current version it is still not possible. Is there a way to enable it by altering sqlhtml.py for instance? Would be very helpful to use this feature. Thanks, Stephan Am Dienstag, 5. April 2016 03:57:53 UTC+2 schrieb Massimo Di Pierro:

Re: [web2py] Re: Reopen a session without cookies

2016-08-11 Thread 黄祥
is there any way to send notification to telegram bot after insert the form in web2py? e.g. redirect('https://api.telegram.org/bot/sendMessage?chat_id==test') result test url: {"ok":false,"error_code":403,"description":"Bot can't send messages to the bot"} thanks and best regards, stifan --

Re: [web2py] Re: Reopen a session without cookies

2016-08-11 Thread Martin Weissenboeck
Telegram works very well. Try: import requests TOKEN = " text = "Testtext" def sendtelegram(chat_id, text): url = "https://api.telegram.org/bot%s/%%s; % TOKEN postdata = dict(chat_id = chat_id, text=text) method = "sendMessage" return requests.post(url%method,