In trunk. Thank you! Massimo
On Feb 17, 8:31 am, Jonathan Benn <[email protected]> wrote: > Hi all, > > This is just to let you know that I've finished implementing > Internationalized Domain Name (IDN) support IS_URL. You can now > attempt to validate unicode URLs. If they are valid, the returned > value will be the compliant US-ASCII version of the unicode URL. > > e.g. The command: > print IS_URL()(u'www.Alliancefran\xe7aise.nu') > > Will produce the following output: > ('http://www.xn--alliancefranaise-npb.nu', None) > > When you use IS_URL to validate your forms, if everything works as it > should, your database should be populated with the regular US-ASCII > version of the unicode URL (what's called the ACE, or ASCII Compatible > Encoding). This will give you maximum cross-compatibility between > applications. > > The patch is available from my BitBucket > page:http://bitbucket.org/Demiurge11/patch/ > > You can download it as a ZIP file from > here:http://bitbucket.org/Demiurge11/patch/get/67f32aebcb76.zip > > The modified file (based on Massimo's latest trunk) is: > /gluon/validators.py > > Please let me know if you find any bugs or have any questions. > Everything is documented in the source code. > > --Jonathan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

