Re: [Django] #12988: Add support of IDN domains for URLField validator.

2011-01-23 Thread Django
#12988: Add support of IDN domains for URLField validator.
---+
  Reporter:  niksite   | Owner:  nobody
Status:  new   | Milestone:  1.3   
 Component:  Forms |   Version:  SVN   
Resolution:|  Keywords:  IDN   
 Stage:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by jezdez):

  * has_patch:  0 => 1
  * milestone:  => 1.3

-- 
Ticket URL: 
Django 
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-updates@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.



Re: [Django] #12988: Add support of IDN domains for URLField validator.

2010-06-19 Thread Django
#12988: Add support of IDN domains for URLField validator.
---+
  Reporter:  niksite   | Owner:  nobody
Status:  new   | Milestone:
 Component:  Forms |   Version:  SVN   
Resolution:|  Keywords:  IDN   
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Comment (by fwenzel):

 We've been bitten by this in the Firefox Input application as well. If
 people want to report IDNs like http://www.правительство.рф/ ==
 http://www.xn--80aealotwbjpid2k.xn--p1ai/ , the URLField will throw a
 ValidationError. Our downstream bug is:
 https://bugzilla.mozilla.org/show_bug.cgi?id=573105 .

 We'd appreciate if this made it into a dot-release of Django 1.2!

-- 
Ticket URL: 
Django 
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.



Re: [Django] #12988: Add support of IDN domains for URLField validator.

2010-03-03 Thread Django
#12988: Add support of IDN domains for URLField validator.
---+
  Reporter:  niksite   | Owner:  nobody
Status:  new   | Milestone:
 Component:  Forms |   Version:  SVN   
Resolution:|  Keywords:  IDN   
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by russellm):

  * stage:  Unreviewed => Accepted

-- 
Ticket URL: 
Django 
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.



Re: [Django] #12988: Add support of IDN domains for URLField validator.

2010-02-27 Thread Django
#12988: Add support of IDN domains for URLField validator.
-+--
  Reporter:  niksite | Owner:  nobody
Status:  new | Milestone:
 Component:  Forms   |   Version:  SVN   
Resolution:  |  Keywords:  IDN   
 Stage:  Unreviewed  | Has_patch:  0 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Changes (by ubernostrum):

  * milestone:  1.2 =>

Comment:

 This is a feature request, and as such cannot happen for 1.2, which is
 feature-frozen.

-- 
Ticket URL: 
Django 
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.



Re: [Django] #12988: Add support of IDN domains for URLField validator.

2010-02-27 Thread Django
#12988: Add support of IDN domains for URLField validator.
-+--
  Reporter:  niksite | Owner:  nobody
Status:  new | Milestone:  1.2   
 Component:  Forms   |   Version:  SVN   
Resolution:  |  Keywords:  IDN   
 Stage:  Unreviewed  | Has_patch:  0 
Needs_docs:  0   |   Needs_tests:  0 
Needs_better_patch:  0   |  
-+--
Changes (by UloPe):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 I am the author of the patch on #9764.

 
It seems however that the problem you are describing has nothing to do with IDN handling
  pre-se but rather that the TLD in your example
 (which is one of the [http://www.iana.org/domains/root/db/# IANA IDN test
 TLDs] (click on
 
IDNs)) has "too many" characters for the URLValidator regex which assumes that TLDs have 6 characters at most.

 So the solution could be to
 
either lift the restriction on TLD length or to add special handling for IDN TLDs (which are easily enough to distinguish,
 as they begin with "xn--" in IDNA encoded form) to the regex.

-- 
Ticket URL: 
Django 
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.



[Django] #12988: Add support of IDN domains for URLField validator.

2010-02-27 Thread Django
#12988: Add support of IDN domains for URLField validator.
-+--
 Reporter:  niksite  |   Owner:  nobody
   Status:  new  |   Milestone:  1.2   
Component:  Forms| Version:  SVN   
 Keywords:  IDN  |   Stage:  Unreviewed
Has_patch:  0|  
-+--
 With Django trunk (revision 12617), I have the following:

 {{{
 >>> from django.forms import URLField
 >>> URLField().clean('http://xn--e1afmkfd.xn--80akhbyknj4f/')
 Traceback (most recent call last):
   File "", line 1, in 
   File
 "/home/niksite/webapps/django/datamining/dist/django/forms/fields.py",
 line 156, in clean
 self.run_validators(value)
   File
 "/home/niksite/webapps/django/datamining/dist/django/forms/fields.py",
 line 145, in run_validators
 raise ValidationError(errors)
 django.core.exceptions.ValidationError: [u'Enter a valid URL.']
 >>> URLField().clean('http://пример.испытание/')
 Traceback (most recent call last):
   File "", line 1, in 
   File
 "/home/niksite/webapps/django/datamining/dist/django/forms/fields.py",
 line 156, in clean
 self.run_validators(value)
   File
 "/home/niksite/webapps/django/datamining/dist/django/forms/fields.py",
 line 145, in run_validators
 raise ValidationError(errors)
 django.core.exceptions.ValidationError: [u'Enter a valid URL.']
 }}}

 BTW, these URLs are quit valid, moreover -- there is a wiki page after
 these URLs.

-- 
Ticket URL: 
Django 
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.