On 7/23/06, Jorge Vargas <[EMAIL PROTECTED]> wrote:
> On 7/21/06, Sanjay <[EMAIL PROTECTED]> wrote:
"/usr/lib/python2.4/site-packages/TurboGears-0.9a7-py2.4.egg/turbogears/identity/saprovider.py",
> > line 153, in validate_identity
> >     user = user_class.get_by(user_name=user_name)
> >
>
> I believe with that current Identity code you must extend activeMapper
> because the call above is not defined in plain-sqlalchemy code.

As a workaround, define this method on your classes:

from turbogears.database import session

def get_by(cls, *args, **kwargs):
   return session.query(cls).get_by(*args, **kwargs)
get_by = classmethod(get_by)


Arnar

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