Thanks, that fixed some other problems, but my initial problem of not
getting the list of events associated with each group is still
present.

On Thu, Jun 28, 2012 at 1:44 AM, Anthony <[email protected]> wrote:
>> db.define_table(
>>     'group_of_events',
>>     Field('group_name', requires=[IS_NOT_EMPTY(), IS_NOT_IN_DB(db,
>> 'group_of_events.group_name')]),
>>     Field('events', 'list:reference db.event', requires=[IS_IN_DB(db,
>> 'event.id', '%(event_name)s [%(group_id)s]', multiple=True)])
>
>
> When you put the IS_IN_DB validator in a list, you do not get the standard
> dropdown (for single items) or multiple select widget (for multiple items).
> Change the above to:
>
>     requires=IS_IN_DB(db, 'event.id', '%(event_name)s [%(group_id)s]',
> multiple=True)
> Anthony
>
> --
>
>
>

-- 



Reply via email to