PigletWatcher schrieb:
>     def by_user_name(cls, username):
> 
>            return cls.query.filter_by(user_name=username).first()
> 
> I used Sqlalchemy to replace SQLObject as my default ORM in this
> application, and enabled user identity as well.
> 
> But when to start this application by using "python.." statements, it
> threw an error that "cls class can't have query such method"
> 
> What's wrong with it? The code above is created in the build-in
> process of create a new project.

This post doesn't make much sense. Please show the *actual* stacktraces, 
not something you vaguely remember & type in wrong.

Diez

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