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

zine::utils::forms::CommaSeparated Class Reference

Inheritance diagram for zine::utils::forms::CommaSeparated:

zine::utils::forms::Multiple zine::utils::forms::Field

List of all members.

Detailed Description

Works like the multiple field but for comma separated values:

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

The default widget is a `TextInput` but `Textarea` would be a possible
choices as well.

Definition at line 1177 of file forms.py.

Public Member Functions

def __call__
def __copy__
def __init__
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


Static Public Attributes

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

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

Generated by  Doxygen 1.6.0   Back to index