>
> Define it as Field('country', 'reference country') instead of 
>> Field('country', db.country) -- the latter won't work if db.country hasn't 
>> been defined yet.
>>
>
> Should I use 'reference table' instead of db.table in all table 
> definitions or just in the definition of tables that reference a table that 
> hasn't been defined yet?
>

It doesn't matter -- they are equivalent (actually, when you use db.table, 
it gets converted to 'reference table'). The only difference is the 
'reference table' version works even if the "table" table has not yet been 
defined.

Anthony

Reply via email to