2010/10/1 mdipierro <mdipie...@cs.depaul.edu>

> keyed tables are only partially supported. Perhaps user Denes can say
> more about that. For now here is a quick hack that should work:
>
>
Thank you for fast reply.


> db.define_table('cars',
>    Field('car_id','integer'),
>    Field('model_id',
> 'integer',requires=IS_IN_DB(db,'car_models.model_id','%
> (model_name)s')),
>     Field('note','text'),
>    primarykey=['car_id'],
>    migrate=False
> )
>
>
Thats what I'm using now.  Some nice tools (like WebGrid) don't work  this
way. Maybe I'l try to fix WebGrid.

Reply via email to