>
> Do you mean like:
>
> requires=IS_IN_DB(db,'sometable.id','%(name)s (%(description)s)')
>
> If so, yes I have them there. The purpose is to create the drop down
> menu... unless I'm doing it wrong? Or is there another way about it so that
> the references will appear per the manual?
>
Yes, that's what I mean. By specifying the validator, you no longer get the
default "represent" attribute. Is '%(name)s (%(description)s)' the same as
the "format" attribute of the db.sometable table? If so, there's no reason
to explicitly specify that validator, as you will get exactly that
validator by default anyway (in which case, you will also get the default
"represent" attribute).
Alternatively, you can do:
Field('sometable', db.sometable, requires=IS_IN_DB(...),
represent=lambda id, row: db.sometable._format % db.sometable(id))
Anthony
--