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
Nice, and this way insert_url is anything that you want it to be?
-Thadeus
On Sun, Apr 11, 2010 at 12:35 PM, Rafael Pinheiro
wrote:
> For some time i am missing a small feature on web2py, the IS_IN_DB validator
> forces the widget to be a OptionWidget populated from the database, but if i
>
For some time i am missing a small feature on web2py, the IS_IN_DB validator
forces the widget to be a OptionWidget populated from the database, but if i
need to add a new record to the table that populates it i have to open a new
tab on my browser, add the new record and realod the form to get the
3 matches
Mail list logo