[web2py] SQLForm.grid : is it possible to delete multiple rows at once ?

2012-03-23 Thread sebsto
Hello, Is it possible to select and delete multiple rows with one button click using SQLFORM.grid ? (instead of clicking delete on each row) I tried the "selectable" property but this doesn't help to delete. I searched the archive of this group / mailing-list without success Thanks for your hel

[web2py] Re: SQLForm.grid : how to change the way column are rendered

2012-03-22 Thread sebsto
Thanks for your quick answer. I figure it out just right now, here is my. It's working as expected !! def formatFlag(value): if value == 1: icon = 'msg_received' elif value ==0: icon = 'msg_sent' return IMG(_src=URL('static', 'images/%s.png' % i

[web2py] SQLForm.grid : how to change the way column are rendered

2012-03-22 Thread sebsto
Hello, I just discovered SQLForm.grid ! Waow, geat job !! I'd like to customize some columns in the generated table. Example use case : - Use the pretty date formatting instead of displaying the raw date ("yesterday", etc ...) - Use an icon instead of a status flag. Is it possible ? How to

[web2py] Re: How to execute code after Register and Login functions ?

2012-03-19 Thread sebsto
). There are callbacks for other auth events as well -- > seehttp://web2py.com/books/default/chapter/29/9#Settings-and-messages. > > Anthony > > > > > > > > On Monday, March 19, 2012 4:04:50 PM UTC-4, sebsto wrote: > > > Dear All, > > > I would like to exe

[web2py] How to execute code after Register and Login functions ?

2012-03-19 Thread sebsto
Dear All, I would like to execute some security related code (like key generation) after successful Registration and / or Login function ... Is it possible ? How to do it ? Thanks Seb

[web2py] RESTful API: hook before controller is called ?

2012-03-19 Thread sebsto
Hello, Still developing around the RESTfull API. I am looking for a way to handle the HTTP POST payload *before* the controller is called. I want my REST clients to send encrypted and compressed content. I would need to decipher and decompress the content before the args parsing is done. Any su

[web2py] Re: RESTful API : at ...> is not JSON serializable

2012-03-18 Thread sebsto
Worked ! Thanks On Mar 19, 5:50 am, Massimo Di Pierro wrote: > return dict(message = db.message(id).as_dict()) > > > > > > > > On Sunday, 18 March 2012 19:10:13 UTC-5, sebsto wrote: > > > Dear All, > > > I am new the web2py and trying to use the re

[web2py] RESTful API : at ...> is not JSON serializable

2012-03-18 Thread sebsto
Dear All, I am new the web2py and trying to use the relatively new RESTful API, as described at http://web2py.com/books/default/chapter/29/10#Restful-Web-Services I am testing it with a very simple model : db.define_table('message', Field('sender', required=True), Field('recipient', requ