Package Camelot :: Package camelot :: Package view :: Module forms :: Class ColumnSpan |
[frames] | no frames]

# Class ColumnSpan

source code

Instance Methods
__init__(self, field=None, num=2) eg : with 2 columns, the fields ['street', 'city', 'country'] will be ordered as : | source code
Inherited from `Form`: `__unicode__`, `add_field`, `get_fields`, `removeField`, `render`, `replaceField` Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, field=None, num=2) (Constructor) | source code
eg : with 2 columns, the fields ['street', 'city', 'country'] will be ordered as :
street | city
country |
Parameters: `content` - a list with the field names and forms to render `columns` - the number of columns in which to order the fields. Overrides: object.__init__ (inherited documentation)