Logo Search packages:      
Sourcecode: zine version File versions  Download package

zine::utils::forms::Multiple Class Reference

Inheritance diagram for zine::utils::forms::Multiple:

zine::utils::forms::Field zine::utils::forms::CommaSeparated

List of all members.


Detailed Description

Apply a single field to a sequence of values.

>>> field = Multiple(IntegerField())
>>> field([u'1', u'2', u'3'])
[1, 2, 3]

Recommended widgets:

-   `ListWidget` -- the default one and useful if multiple complex
    fields are in use.
-   `CheckboxGroup` -- useful in combination with choices
-   `SelectBoxWidget` -- useful in combination with choices

Definition at line 1109 of file forms.py.


Public Member Functions

def __call__
def __copy__
def __init__
def __init__
def __repr__
def apply_validators
def bound
def convert
def get_default
def multiple_choices
def should_validate
def to_primitive

Public Attributes

 custom_converter
 field
 help_text
 label
 max_size
 min_size
 validators

Static Public Attributes

tuple choices = ()
 form = None
tuple messages = dict(too_small=None, too_big=None)
 multiple_choices = False
 validate_on_omission = True
 widget = ListWidget

Private Member Functions

def _bind

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index