from gluon.sql import Table

a=Table(None,'tmp',Field('xxx',..),Field(...))
db.define_table('mytable1',a,Field(...))
db.define_table('mytable2',a,Field(...))

you get db.mytable1.xxx and db.mytable2.xxx

Massimo


On Jan 3, 12:36 pm, villas <villa...@gmail.com> wrote:
> See Web2py 2nd Version Book/Manual Pg 179, section Table Inheritance.
>
> On Jan 3, 4:56 pm, werner <wbru...@gmail.com> wrote:
>
>
>
> > Is it possible to define common db columns, e.g. posted_by, posted_on
> > etc once and define on the appropriate table to just inherit these
> > common columns?
>
> > Werner- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@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