flare.viur.bones.numeric

Module Contents

Classes

NumericEditWidget

Base class for a bone-compliant edit widget implementation using an input field.

NumericViewWidget

Base class for a bone-compliant view widget implementation using a div.

NumericBone

Functions

_formatCurrencyValue(value, bone)

Internal helper function that formats a numeric value which is a string according to the bone's formatting

flare.viur.bones.numeric._formatCurrencyValue(value, bone)

Internal helper function that formats a numeric value which is a string according to the bone’s formatting

class flare.viur.bones.numeric.NumericEditWidget(bone, **kwargs)

Bases: flare.viur.bones.base.BaseEditWidget

Base class for a bone-compliant edit widget implementation using an input field.

This widget defines the general interface of a bone edit control.

style = ['flr-value', 'flr-value--numeric']
createWidget()

Function for creating the Widget or multiple Widgets that represent the bone.

updateWidget()

Function for updating the Widget or multiple Widgets that represent the bone.

setValue(value)
onChange(event)
unserialize(value=None)

Unserialize the widget value.

serialize()

Serialize the widget value.

class flare.viur.bones.numeric.NumericViewWidget(bone, **kwargs)

Bases: flare.viur.bones.base.BaseViewWidget

Base class for a bone-compliant view widget implementation using a div.

unserialize(value=None)

Unserialize the widget value.

class flare.viur.bones.numeric.NumericBone(*args, **kwargs)

Bases: flare.viur.bones.base.BaseBone

editWidgetFactory
viewWidgetFactory
static checkFor(moduleName, boneName, skelStructure, *args, **kwargs)