flare.viur.bones.relational

Module Contents

Classes

RelationalEditWidget

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

RelationalViewWidget

RelationalMultiEditWidget

Class for encapsulating multiple bones inside a container.

RelationalBone

HierarchyBone

TreeItemBone

TreeDirBone

FileEditDirectWidget

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

FileViewWidget

FileMultiEditDirectWidget

Class for encapsulating multiple bones inside a container.

FileDirectBone

FileEditWidget

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

FileBone

Functions

_getDefaultValues(structure)

Gets defaultValues from a structure.

flare.viur.bones.relational._getDefaultValues(structure)

Gets defaultValues from a structure.

class flare.viur.bones.relational.RelationalEditWidget(bone, language=None, **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--relational']
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.

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

Unserialize the widget value.

serialize()

Serialize the widget value.

onSelectBtnClick()
onDeleteBtnClick()
class flare.viur.bones.relational.RelationalViewWidget(bone, language=None, **kwargs)

Bases: flare.html5.Div

style = ['flr-value', 'flr-value--relational']
unserialize(value=None)
serialize()
class flare.viur.bones.relational.RelationalMultiEditWidget(*args, **kwargs)

Bases: flare.viur.bones.base.BaseMultiEditWidget

Class for encapsulating multiple bones inside a container.

onAddBtnClick()
_addEntriesFromSelection(selector, selection)
class flare.viur.bones.relational.RelationalBone(*args, **kwargs)

Bases: flare.viur.bones.base.BaseBone

editWidgetFactory
viewWidgetFactory
multiEditWidgetFactory
selectorAllow
static checkFor(moduleName, boneName, skelStructure, *args, **kwargs)
class flare.viur.bones.relational.HierarchyBone(*args, **kwargs)

Bases: RelationalBone

static checkFor(moduleName, boneName, skelStructure, *args, **kwargs)
class flare.viur.bones.relational.TreeItemBone(*args, **kwargs)

Bases: RelationalBone

selectorAllow
static checkFor(moduleName, boneName, skelStructure, *args, **kwargs)
class flare.viur.bones.relational.TreeDirBone(*args, **kwargs)

Bases: RelationalBone

selectorAllow
static checkFor(moduleName, boneName, skelStructure, *args, **kwargs)
class flare.viur.bones.relational.FileEditDirectWidget(bone, language=None, **kwargs)

Bases: RelationalEditWidget

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--file']
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.

onChange(event)
startUpload(file)
onDragEnter(event)
onDragOver(event)
onDragLeave(event)
onDrop(event)
onUploadSuccess(uploader, entry)
onUploadFailed(uploader, errorCode)
unserialize(value=None)

Unserialize the widget value.

onDeleteBtnClick()
class flare.viur.bones.relational.FileViewWidget(bone, language=None, **kwargs)

Bases: RelationalViewWidget

unserialize(value=None)
class flare.viur.bones.relational.FileMultiEditDirectWidget(bone, widgetFactory: callable, **kwargs)

Bases: flare.html5.Div

Class for encapsulating multiple bones inside a container.

entryFactory
style = ['flr-value-container']
onChange(event)
startUpload(file)
onDragEnter(event)
onDragOver(event)
onDragLeave(event)
onDrop(event)
onUploadSuccess(uploader, entry)
onUploadFailed(uploader, errorCode)
addEntry(value=None)
unserialize(value)
serialize()
class flare.viur.bones.relational.FileDirectBone(*args, **kwargs)

Bases: TreeItemBone

editWidgetFactory
viewWidgetFactory
multiEditWidgetFactory
static checkFor(moduleName, boneName, skelStructure, *args, **kwargs)
class flare.viur.bones.relational.FileEditWidget(bone, language=None, **kwargs)

Bases: RelationalEditWidget

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--relational', 'flr-value--file']
createWidget()

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

unserialize(value=None)

Unserialize the widget value.

class flare.viur.bones.relational.FileBone(*args, **kwargs)

Bases: TreeItemBone

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