thanks.
domain=value.split('@')[1]
will be sufficient since value already passed the regex.
Uploading the fix to trunk now.Massimo On Jul 8, 11:05 pm, "ont.rif" <[email protected]> wrote: > Some portion of code in gluon/validators.py use python 2.5 specific > code. > And so, registration of users in web2py does not work on hosting with > CentOS 5.3 > > Solution: > ****change this: > domain = value.partition('@')[2] > > ****to this: > ## >>> absent in python 2.4 >>> domain = value.partition('@')[2] > domain = value.split( '@' ) > if len( domain ) < 2: > domain = '' > else: > domain = domain[ 1 ] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

