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
-~----------~----~----~----~------~----~------~--~---
- [TurboGears] [Docs] do NOT use Group or Order as SQLObjec... Jorge Vargas
- [TurboGears] Re: do NOT use Group or Order as SQLObj... ajones
- [TurboGears] Re: [Docs] do NOT use Group or Order as... Nicky Ayoub
- [TurboGears] Re: [Docs] do NOT use Group or Orde... Jorge Godoy
- [TurboGears] Re: [Docs] do NOT use Group or ... Nicky Ayoub
- [TurboGears] Re: do NOT use Group or Order as SQLObj... fumanchu
- [TurboGears] Re: [Docs] do NOT use Group or Order as... Jorge Vargas
- [TurboGears] Re: [Docs] do NOT use Group or Orde... Jorge Vargas
- [TurboGears] Re: [Docs] do NOT use Group or Order as... Robin Haswell
- [TurboGears] Re: [Docs] do NOT use Group or Orde... Jorge Vargas
- [TurboGears] Re: [Docs] do NOT use Group or ... Robin Haswell
- [TurboGears] Re: [Docs] do NOT use Group... Jorge Godoy
- [TurboGears] Re: [Docs] do NOT use ... Robin Haswell
- [TurboGears] Re: [Docs] do NOT ... Jorge Godoy
- [TurboGears] Re: [Docs] do ... Roger Demetrescu

