Using latest trunk 1014 and starting from empty app the table
definition fails:
db = SQLDB('sqlite://storage.sqlite')
db.define_table('dog',
SQLField('name'),
SQLField('father_id','reference dog'),
SQLField('mother_id','reference dog'))
Traceback (most recent call last):
File "D:\web2py\trunk\gluon\restricted.py", line 107, in restricted
exec ccode in environment
File "D:/web2py/trunk/applications/slides/models/db.py", line 73, in
<module>
SQLField('mother_id','reference dog')
File "D:\web2py\trunk\gluon\sql.py", line 955, in define_table
t = self[tablename] = SQLTable(self, tablename, *fields)
File "D:\web2py\trunk\gluon\sql.py", line 1147, in __init__
raise SyntaxError, 'SQLTable: table does not exist'
SyntaxError: SQLTable: table does not exist