"gasolin" <[EMAIL PROTECTED]> writes:

> To provide extra methods to implement "act_as" function,
> I wonder if it's possible to inherit "Entity" class rather than declare
> "act_as" in metadata?
>
> For example:
>
> class Book (List): # declare in class, multiple inheritance possible
>     class turboentity:
>         tablename = "book"
>
> rather than:
>
> class Book (Entity):
>     class turboentity:
>         tablename = "book"
>         act_as = "List" # declare "act_as" in metadata

Personally I prefer the second option.  It is more readable and lets your
intentions clearer.

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
 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