This code looks much cleaner, but the doctor table contains only the
speciality-column.

I looked at the source of class SQLTable in sql.py and the
documentation says, this should work:

"...
        If a field is of type Table, the fields (excluding 'id') from
that table
        will be used instead.
..."

So I tried this:

person=db.Table('person',SQLField('name'))
db.define_table('doctor',person)

But after that, the table has no fields.

_peter_
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to