#14015: django.contrib.localflavor.it added italian phone number validation
-------------------------------------------------------------------------------------------+
 Reporter:  VoodooChile                                                         
           |       Owner:  nobody    
   Status:  new                                                                 
           |   Milestone:            
Component:  django.contrib.localflavor                                          
           |     Version:  1.2       
 Keywords:  django.contrib.localflavor.it ITPhoneNumberField form phone number 
validation  |       Stage:  Unreviewed
Has_patch:  1                                                                   
           |  
-------------------------------------------------------------------------------------------+
 Hi to all,
 I found myself in need of an Italian phone numbers validator, so I wrote
 it as a localflavor element, and now I'm sharing it with the community of
 Django.
 The validation process is quite simple but yet very functional. The
 (eventual) international prefix (both +39 or 0039) is stripped from the
 number entered (something like 0039 010 1234567 -> 010 1234567).
 The local prefix (in example 010, the prefix for Genoa) is checked against
 a list of valid prefixes (both fixed line or mobile), and if the number
 meet all the requirements (containing only number, having a prefix between
 2 and 4 digits, and a number itself between 5 and 8 digits...) is returned
 as a cleaned value.

 Hope of being of some Help,
 Greetings,
 Andrea

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14015>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to