Puck wrote:
> class UsernameValidator(UnicodeString):
>     def validate_python(self, username, state=None):
>         if not username:
>             raise Invalid("No username given", "", state)
>         try:
>             ################## here's the not-working change
>             user = User.by_user_name(username)
>             ################## how do get the needed user id into this
> method????
>   
turbogears.identity.current.user.user_name should work...



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