Re: [Django] #10056: Problem with non-ASCII characters in FilePathField in contrib.admin

2009-04-01 Thread Django
#10056: Problem with non-ASCII characters in FilePathField in contrib.admin
+---
  Reporter:  andrew.mcmu...@ifi.uio.no  | Owner:  nobody
Status:  closed | Milestone:  1.1   
 Component:  django.contrib.admin   |   Version:  1.0   
Resolution:  invalid|  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Comment (by kmtracey):

 The original problem description makes it sound like by default a
 !FilePathField will list in the select box files that, if selected, will
 lead to a "not a valid selection -- please select a valid choice" form
 validation error.  If that were so, this would not (imo) be an invalid
 ticket. If a file is listed in the select box, it should be accepted as a
 valid choice, without requiring override of the !FilePathField regex or
 the form field's clean method.  However, I cannot recreate the problem as
 described so I think there is some piece of the puzzle missing from the
 original problem description.  Using this model:

 {{{
 #!python
 class FilePathT(models.Model):
 fpath = models.FilePathField(path='/home/kmt/tmp')

 def __unicode__(self):
 return self.fpath
 }}}

 registered with no special customization in the admin (i.e.
 `admin.site.register(FilePathT)`), I cannot recreate any problem where the
 drop-down list includes a file to choose that is then rejected on
 selection as "not a valid choice".  I can select files with Chinese (or
 maybe they're Japanese) characters and save them just fine.

-- 
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] #10056: Problem with non-ASCII characters in FilePathField in contrib.admin

2009-03-31 Thread Django
#10056: Problem with non-ASCII characters in FilePathField in contrib.admin
+---
  Reporter:  andrew.mcmu...@ifi.uio.no  | Owner:  nobody
Status:  closed | Milestone:  1.1   
 Component:  django.contrib.admin   |   Version:  1.0   
Resolution:  invalid|  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by kkubasik):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 We don't want to be limiting the possible files to select, if you want,
 FilePathField takes a regex to determine which files should be displayed,
 so you could hide the non-ascii files. Or, if you want to allow them, you
 could subclass the Form's clean() method and change the validation rules.
 Overall, the opinion appears to be that we can't allow filenames that
 filesystems don't support, and we don't want to limit which files you see
 in the dropdown (by default).

 I'm going to close this, but feel free to reopen if I'm super-wrong or
 totally off-base.

-- 
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] #10056: Problem with non-ASCII characters in FilePathField in contrib.admin

2009-02-27 Thread Django
#10056: Problem with non-ASCII characters in FilePathField in contrib.admin
+---
  Reporter:  andrew.mcmu...@ifi.uio.no  | Owner:  nobody
Status:  new| Milestone:  1.1   
 Component:  django.contrib.admin   |   Version:  1.0   
Resolution: |  Keywords:
 Stage:  Accepted   | Has_patch:  0 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by jacob):

  * needs_better_patch:  => 0
  * needs_docs:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * milestone:  => 1.1

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



[Django] #10056: Problem with non-ASCII characters in FilePathField in contrib.admin

2009-01-17 Thread Django
#10056: Problem with non-ASCII characters in FilePathField in contrib.admin
---+
 Reporter:  andrew.mcmu...@ifi.uio.no  |   Owner:  nobody
   Status:  new|   Milestone:
Component:  django.contrib.admin   | Version:  1.0   
 Keywords: |   Stage:  Unreviewed
Has_patch:  0  |  
---+
 I have a model including a FilePathField.  The directory in question
 contains filenames with non-ASCII characters (on Linux).  I have been
 trying to add entries for this model using the admin pages.  I get a pull-
 down menu listing all available files, with the non-ASCII characters
 displayed correctly.  I choose a filename containing non-ASCII characters,
 and the field value displays correctly.  I try to submit the new object
 and it fails, with 'Select Valid Choice - x is not one of the
 available choices'.  Filenames containing no non-ASCII characters work
 fine.

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