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
deserializemethod of a widget must deserialize a pstruct value to a cstruct value and return the cstruct value. Thepstructargument is a value resulting from theparsemethod of the Peppercorn package. Thefieldargument is the field object to which this widget is attached.
- serialize(field, cstruct, **kw)[source]¶
The
serializemethod 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.serializeshould return the HTML rendering: the result of this method should always be a string containing HTML. Thefieldargument is the field object to which this widget is attached. The**kwargument allows a caller to pass named arguments that might be used to influence individual widget renderings.