OK but there is nothing wrong with the suggestion in your blog and it is really good that you posting suggestions that can help other users. Feel free to add an alterego entry that links to the web2py recipes on your blog or copy your recipe directly in AlterEgo.
On Jun 28, 2:25 pm, phecker <phecke...@googlemail.com> wrote: > Ok, I got it: > > The first parameter of db.Table must be None. So this work: > > person=db.Table(None, 'person',SQLField('name')) > db.define_table('doctor', person, SQLField('specialty')) > > And this works also with multiple "table-fields": > > table1 = db.Table(None, 'table1', SQLField('table1_field1'), SQLField > ('table1_field2')) > table2 = db.Table(None, 'table2', SQLField('table2_field1'), SQLField > ('table2_field2')) > db.define_table('table3', table1, table2, SQLField('table3_field1'), > SQLField('table3_field2')) > > I like this code and will update my blog. > > _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 -~----------~----~----~----~------~----~------~--~---