[web2py] Delete confirmation

2016-08-27 Thread Winter Kryz
Hello everybody, I have a Datatable filled with registers from a database and for each row I have a 'delete' button, what I'm trying to do is display a modal (bootstrap) delete confirmation (yes/no) but I don't know how to pass the id of that particular register so I can delete from the databas

[web2py] Re: Djano channels

2016-08-27 Thread Ron Chatterjee
Have anyone had a chance to test out websocket_messaging.py ? It works out of box as long the websocket is running in the back but kind of confusing to see it only works on localhost:. Wondering if anyway to

[web2py] Re: var to follow user around

2016-08-27 Thread Anthony
Yes, that is the exact purpose of the session. On Friday, August 26, 2016 at 5:02:50 PM UTC-4, Alex Glaros wrote: > > user selects one of several organization IDs to work with. Instead of > putting the ID in a dict that has to get passed around to every controller > he goes to, is it safe/ok, t

Re: [web2py] Re: I am trying to login from Phonegap app into my web2py app, what's wrong here?

2016-08-27 Thread Kiran Subbaraman
The book can help you: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Logical-operators You need to use the right operator in your query You can also use the web2py debugger to figure out how your code works and values returned, at runtime. ___

Re: [web2py] Re: DAL size limit for query?

2016-08-27 Thread Marcello Console
thank you for your answer and sorry for the delay, i had been some days away. at this time the code that fails is: tabella = request.args[0] response.headers['Content-Type']='text/x-csv' response.headers['Content-Disposition']='attachment;filename="report.csv" ' dati = legacy_db().select(legacy_db

[web2py] Re: I am trying to login from Phonegap app into my web2py app, what's wrong here?

2016-08-27 Thread Steve Joe
Anyone there? Anthony? On Friday, August 26, 2016 at 7:38:40 PM UTC+5:30, Steve Joe wrote: > > *db(db.auth_user.username == request.vars.username and > db.auth_user.password == CRYPT(request.vars.password)).select()* > > > *if db(db.auth_user.username == request.vars.username and > db.auth_user.