There is also this: http://www.web2pyslices.com/main/slices/take_slice/11
but I think we can do better than both by merging both approaches. Massimo On Apr 11, 1:36 pm, Rafael Pinheiro <moriarty.pinhe...@gmail.com> wrote: > It expects an url where you could insert a new record. Right now all it does > is open a link on a new tab, so anything that could go into a href would > work. > > On my model i did like that: > requires=IS_IN_DB(db, db.auth_user.id, insert_url=URL(a=request.application, > c='appadmin', f= 'insert', args=['db','auth_user'])) > > so a link will be inserted like that next to the options: > A("New", _target='_blank', _href=item.insert_url) > > where item is the IS_IN_DB validator. > > -- > ►Rafael Pinheiro > ►Email: moriarty.pinhe...@gmail.com > ►Email: pinheiro....@gmail.com > ►MSN: rafae...@hotmail.com > ►Blog:http://rbpinheiro.wordpress.com/ -- To unsubscribe, reply using "remove me" as the subject.