On Jun 26, 10:07 am, alex bodnaru <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> i found the same.
>
> you may try:
>
> user.password=identity.encrypt_password(password)
>
> alex
>
Yeah, looking a bit more closely, it appears that the SQLAlchemy class
isn't doing the same thing as the SQLObject class.
Try changing your model.py as follows (untested):
class User(object):
# ....
def _set_password(self, password):
self._password = identity.encrypt_password(password)
def _get_password(self):
return self._password
password = property(_get_password, _set_password)
#down a bit...
assign(User, users_table,
properties=('_password': users_table.c.password)
If that works, do you mind submitting a bug report and a link to this
thread? I don't see any tickets out there for this.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---