#6001: Inconsistency between Select and SelectMultiply
--------------------------------------------------+-------------------------
Reporter:  Petr Marhoun <[EMAIL PROTECTED]>  |       Owner:  nobody         
  Status:  new                                    |   Component:  
django.newforms
 Version:  SVN                                    |    Keywords:                
 
   Stage:  Unreviewed                             |   Has_patch:  1             
 
--------------------------------------------------+-------------------------
 From django.newforms.widget.Select:

 {{{
 #!python
 class Select(Widget):
     def __init__(self, attrs=None, choices=()):
         super(Select, self).__init__(attrs)
         # choices can be any iterable, but we may need to render this
 widget
         # multiple times. Thus, collapse it into a list so it can be
 consumed
         # more than once.
         self.choices = list(choices)
 }}}

 And from django.newforms.widget.!SelectMultiply:

 {{{
 #!python
 class SelectMultiple(Widget):
     def __init__(self, attrs=None, choices=()):
         super(SelectMultiple, self).__init__(attrs)
         # choices can be any iterable
         self.choices = choices
 }}}

 Should be choices collapsed? !NullBooleanSelect inherits from Select - why
 doesn't !SelectMultiply inherits from Select too?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6001>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to