Excellent suggestion. Thanks for pointing this out to me. Per the docs using sqlmeta
allows "specifying metadata in a clearer way, without polluting the class namespace
with more attributes".

So the example should read something like this:

class User(SQLObject):
    class sqlmeta:
        table = 'app_user'

As the manual states "if you're not using the sqlmeta class you're doing things in a deprecated way."
Next time I do more research before I post.

Nick

On 4/19/06, Jorge Godoy <[EMAIL PROTECTED] > wrote:

Em Quinta 20 Abril 2006 00:33, Nicky Ayoub escreveu:
> Here is another reference
> http://www.sqlobject.org/SQLObject.html#irregular-naming that allows you to
> override the table name to
> use.
>
> IE.
>
> class User(SQLObject):
>     _table = 'app_user'

Please, don't use this obsolete syntax.  Use the sqlmeta class for that.  It's
in the same page above: http://www.sqlobject.org/SQLObject.html#class-sqlmeta


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

Reply via email to