Thanks Massimo, and Villas,
Should be more patient and read up some more.
Werner
mdipierro wrote:
> 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 <[email protected]> wrote:
>> See Web2py 2nd Version Book/Manual Pg 179, section Table Inheritance.
>>
>> On Jan 3, 4:56 pm, werner <[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/web2py?hl=en.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.