portal_web.views.forms.deform package¶
Submodules¶
portal_web.views.forms.deform.money_input module¶
- class portal_web.views.forms.deform.money_input.MoneyInputField(*args, **kw)[source]¶
Bases:
SchemaNode
- schema_type¶
alias of
Money
- widget = <portal_web.views.forms.deform.money_input.MoneyInputWidget object>¶
- class portal_web.views.forms.deform.money_input.MoneyInputWidget(*args, **kwargs)[source]¶
Bases:
MoneyInputWidget
- deserialize(field, pstruct)[source]¶
The
deserialize
method of a widget must deserialize a pstruct value to a cstruct value and return the cstruct value. Thepstruct
argument is a value resulting from theparse
method of the Peppercorn package. Thefield
argument is the field object to which this widget is attached.
- serialize(field, cstruct, **kw)[source]¶
The
serialize
method of a widget must serialize a cstruct value to an HTML rendering. A cstruct value is the value which results from a Colander schema serialization for the schema node associated with this widget.serialize
should return the HTML rendering: the result of this method should always be a string containing HTML. Thefield
argument is the field object to which this widget is attached. The**kw
argument allows a caller to pass named arguments that might be used to influence individual widget renderings.