Julio Oña wrote:
> Hi Lee,
>
> Just create a class with all your common definition (derived from SQLObject)
> later derive from this class fore each of your tables.
>
> for example:
>
> class Common(SQLOBject):
>     name = StringCol()
>     age = IntCol()
>     [...]

I *think* this needs to derive from InheritableSQLObject instead of a
regular SQLObject, but I am not entirely sure about that. Either way
this is how I would approach the problem. (That or refactor the tables
into each other unless their definitions are planned to diverge later)

-Adam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to