I believe you will have to define this table rather than pulling it
automatically from the db, that will allow you to override the
autogenerated python name for the column using dbName.  Something like
this:

Does not work:
class User(SQLObject):
    pass = StringCol(alternateID=True)
    lists = MultipleJoin('List')


Should work:
class User(SQLObject):
    userpass = StringCol(alternateID=True, dbName="pass")
    lists = MultipleJoin('List')


On Oct 17, 9:17 am, Julio Jimenez <[EMAIL PROTECTED]> wrote:
> I'm trying to work with a legacy mysql database and in one table there
> is a column named "pass" which is a reserved word on python, I've
> searched a lot on google and the sqlobject docs but all I can find is
> how to get around table naming issues, not single columns. The model
> is just configured to be grabbed from the db son there's nothing I can
> post here.
>
> Thanks,
>
> Julio J.
--~--~---------~--~----~------------~-------~--~----~
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