many2oneeditor

class camelot.view.controls.editors.many2oneeditor.Many2OneEditor(admin=None, parent=None, editable=True, field_name='manytoone', **kwargs)[source]

Widget for editing many 2 one relations

get_value()[source]
Returns:a function that returns the selected entity or ValueLoading

or None

search_completions(*args, **kwargs)[source]

Search for object that match text, to fill the list of completions

Returns:a list of tuples of (object_representation, object_getter)
set_instance_representation(representation_and_propagate)[source]

Update the gui

set_value(value)[source]
Parameters:value – either ValueLoading, or a function that returns None

or the entity to be shown in the editor

Previous topic

localfileeditor

Next topic

monthseditor

This Page