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

Reply via email to