flare.viur.bones.string

Module Contents

Classes

StringEditWidget

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

StringViewWidget

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

StringBone

class flare.viur.bones.string.StringEditWidget(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--string']
createWidget(self)

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

updateWidget(self)

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

onChange(self, event)
onKeyUp(self, event)
renderTimeout(self)
updateLength(self)
unserialize(self, value=None)

Unserialize the widget value.

serialize(self)

Serialize the widget value.

class flare.viur.bones.string.StringViewWidget(bone, **kwargs)

Bases: flare.viur.bones.base.BaseViewWidget

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

unserialize(self, value=None)

Unserialize the widget value.

class flare.viur.bones.string.StringBone(moduleName, boneName, skelStructure, errors=None, errorQueue=None, *args, **kwargs)

Bases: flare.viur.bones.base.BaseBone

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