I am new to web2py and have been going through the books and examples and
was wondering if when creating foreign-key if 'reference tablename' or
db.tablename is better to use.
I looked in the 4th edition of the book and there is an example where a
table has multiple references to itself;
db.define_table('person',
Field('mother', 'reference person' ...
Field('father', 'reference person' ...
and it indicates 'reference person' should be used in that case. Which
should be used.
Should length normally be supplied for field types that accept it?
When defining the type of field should you use type='string' or 'string' or
does it matter?
--