José de Paula Eufrásio Júnior wrote: > For the time being I'm using > > def set_password(self, pw): > self.password = identity.encrypt_password(pw) > > on the User class. The 'identity.encrypt_password' is a smart fella > and will DDRT based on the app.cfg hash setting, so if you set it to > plaintext it will return plaintext, md5 will return m5, and so on...
I don't know if that will always work as expected for SqlAlchemy. I believe identity.encrypt_password ultimately looks to the 'identity.soprovider.encryption_algorithm' to decide the method to use, and ignores 'identity.saprovider.encryption_algorithm'. That's just my static analysis though, I could be wrong. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

