Italo Maia wrote:
> Well, after solving my encoding problemas, here a i come with identity.
> In my model, when i put these classes, overwriting the identity default
> providers, i get a bad sql syntax error. Does it seems erroneous to
> you?
> 
> class User(TG_User):
>     matricula=UnicodeCol(length=20,notNone=True)
> 
> class Group(TG_Group):
>     grantedBy=ForeignKey('User')
> 
> class Permission(TG_Permission):
>     pass
> 
> Without these lines, it works just fine. I get this error using mysql,
> the error under sqlite is diferent.In sqlite the error is: near
> group:syntax error [...]

"user" and "group" may be reserved words in your database. You could try 
other names for your classes/tables.

-- Gerhard

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