flare.viur.bones.relational
¶
Module Contents¶
Classes¶
Base class for a bone-compliant edit widget implementation using an input field. |
|
Class for encapsulating multiple bones inside a container. |
|
Base class for a bone-compliant edit widget implementation using an input field. |
|
Class for encapsulating multiple bones inside a container. |
|
Base class for a bone-compliant edit widget implementation using an input field. |
|
Functions¶
|
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(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.
- updateString(self)¶
- onChange(self, event)¶
- unserialize(self, value=None)¶
Unserialize the widget value.
- serialize(self)¶
Serialize the widget value.
- onSelectBtnClick(self)¶
- onDeleteBtnClick(self)¶
- class flare.viur.bones.relational.RelationalViewWidget(bone, language=None, **kwargs)¶
Bases:
flare.html5.Div
- style = ['flr-value', 'flr-value--relational']¶
- unserialize(self, value=None)¶
- serialize(self)¶
- class flare.viur.bones.relational.RelationalMultiEditWidget(*args, **kwargs)¶
Bases:
flare.viur.bones.base.BaseMultiEditWidget
Class for encapsulating multiple bones inside a container.
- onAddBtnClick(self)¶
- _addEntriesFromSelection(self, 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(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)¶
- startUpload(self, file)¶
- onDragEnter(self, event)¶
- onDragOver(self, event)¶
- onDragLeave(self, event)¶
- onDrop(self, event)¶
- onUploadSuccess(self, uploader, entry)¶
- onUploadFailed(self, uploader, errorCode)¶
- unserialize(self, value=None)¶
Unserialize the widget value.
- onDeleteBtnClick(self)¶
- class flare.viur.bones.relational.FileViewWidget(bone, language=None, **kwargs)¶
Bases:
RelationalViewWidget
- unserialize(self, 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(self, event)¶
- startUpload(self, file)¶
- onDragEnter(self, event)¶
- onDragOver(self, event)¶
- onDragLeave(self, event)¶
- onDrop(self, event)¶
- onUploadSuccess(self, uploader, entry)¶
- onUploadFailed(self, uploader, errorCode)¶
- addEntry(self, value=None)¶
- unserialize(self, value)¶
- serialize(self)¶
- 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(self)¶
Function for creating the Widget or multiple Widgets that represent the bone.
- unserialize(self, 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)¶