IS_EMPTY_OR(IS_IN_DB(db, db.lecture_items.id, '%(title)s (%(id)s)'))

Anthony

On Tuesday, August 14, 2012 10:59:42 PM UTC-4, lucas wrote:
>
> ok, moving along,
>
> what if i want the option of allowing the user to leave:
>    ...
>    Field('lecture_item_id', db.lecture_items, requires=IS_IN_DB(db, 
> db.lecture_items.id, '%(title)s (%(id)s)')),
>    ...
>
> blank.  meaning, if the user choses it in the select element, fine, it 
> should be in the referencing table, however, it is ok to leave it blank and 
> the controller will handle it according to design.  how do i define that 
> requires?
>
> thanx again in advance, i am really learning the poop out of this system.  
> lucas
>

-- 



Reply via email to