many2onedelegate

class camelot.view.controls.delegates.many2onedelegate.Many2OneDelegate(parent=None, admin=None, editable=True, **kwargs)[source]

Custom delegate for many 2 one relations

../../../../_images/manytoone.png

Once an item has been selected, it is represented by its unicode representation in the editor or the table. So the related classes need an implementation of their __unicode__ method.

../../../../_images/Many2OneDelegate_unselected_disabled.png ../../../../_images/Many2OneDelegate_unselected_editable.png ../../../../_images/Many2OneDelegate_selected_disabled.png ../../../../_images/Many2OneDelegate_selected_editable.png

Field attributes supported by the delegate :

By default, creates a Many2OneEditor as its editor.

Field Attributes Editor
editable=False tooltip=’tooltip’ ../../../../_images/Many2OneEditor_disabled_tooltip.png
editable=True ../../../../_images/Many2OneEditor_editable.png
editable=True tooltip=’tooltip’ ../../../../_images/Many2OneEditor_editable_tooltip.png
editable=False ../../../../_images/Many2OneEditor_disabled.png
editable=False background_color=ColorScheme.green ../../../../_images/Many2OneEditor_disabled_background_color.png
editable=True background_color=ColorScheme.green ../../../../_images/Many2OneEditor_editable_background_color.png

Static attributes supported by this editor :

Dynamic field attributes supported by the editor :

editor

alias of Many2OneEditor

Previous topic

localfiledelegate

Next topic

manytoonechoicesdelegate

This Page