empty list of options for SelectWidget

Neil Schemenauer <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
Does anyone remember why SelectWidget disallows an empty list of
options?  

        self.options = []
        if not options:
            raise ValueError, "a non-empty list of 'options' is required"
        else:
            self.set_options(options, sort)

I see that BigMultipleSelect widget works around this by creating a
SingleSelectWidget subclass that allows an empty list of options.  I
also have a another case were the list of options can be empty.

I'm thinking of just removing the check.

  Neil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.