Re: [web2py] Multiple Selection and Send Email

2011-02-02 Thread Kenneth Lundström
> def create(): > form = crud.create(db.booking, next = URL('index')) > return dict(form=form) > So I was wondering to use a validator like this: > db.booking.room_id.requires = IS_IN_DB(db, db.room.id, '% (name)s',multiple=True) > But It doesn't work. In what way doesn´t it work? You have t

[web2py] Multiple Selection and Send Email

2011-02-02 Thread Ialejandro
Hi every one! Again me, this time I have a little issue with this: I have the model: db.define_table('location', Field('name','string')) db.define_table('room', Field('name','string'), Field('isbooked','boolean'), Field('location_id', db.location)) db.define