Related to a question I asked about custom manipulators earlier on, I
have a manipulator like this:

class SmsManipulator(forms.Manipulator):
    def __init__(self):
        self.fields = (
            forms.SelectField(field_name="contact_type", choices=TYPES,
validator_list=[self.gotContactType]),
            forms.TextField(field_name="message", length=100,
maxlength=150, is_required=True),
            forms.TextField(field_name="mobile_number", length=30,
maxlength=16, validator_list=[self.gotRecipientNumber]),
            forms.SelectMultipleField(field_name="teams",
choices=TEAMS, size=6, validator_list=[recipient_validator]),
        )

which produces HTML like this:

<select id="id_teams" class="vSelectMultipleField" name="teams"
size="6" multiple="multiple">
<option value="3">Team 3</option>
<option value="4">Team 4</option>
<option value="1">Team 1</option>
<option value="2">Team 2</option>
</select>

Problem is, the form doesn't seem to be returning data['teams'] as a
list, or I'm missing something about how to interpret that list. So
far, I just get the last item selected. I'm new to Python so that could
be part of my problem :-}

Any help would be greatly appreciated :)

--
James


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to