db.table.field.requires = IS_IN_DB(...) # should build the dropdown widget
in form

db.table.field.requires = [ IS_IN_DB(...) ] # should not build the dropdown
widget when requires inside a list.

 --
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]



On Fri, May 27, 2011 at 8:53 PM, Cesar Bustios <[email protected]>wrote:

> Hello, i want to know i this behaviour is correct: Sometimes if I
> define the .requires outside the table definition like:
>
> db.define_table('mytable', ...)
>
> db.mytable.myfield.requires = IS_IN_DB(..)
>
> It just doesn't show the dropdown list in appadmin for reference
> fields, but if I put the .requires inside the table definition then it
> does show the dropdown list. I have the latest stable version of
> web2py. Is this normal behaviour? In that case, which validators can i
> use inside table definition and which ones not.
>
> Thanks in advance
>
> Cesar B.
>
>

Reply via email to