16 |
16 |
17 from cubicweb.interfaces import IWorkflowable |
17 from cubicweb.interfaces import IWorkflowable |
18 from cubicweb.common.utils import make_uid |
18 from cubicweb.common.utils import make_uid |
19 from cubicweb.common.uilib import cut |
19 from cubicweb.common.uilib import cut |
20 from cubicweb.common.selectors import (etype_form_selector, kwargs_selector, |
20 from cubicweb.common.selectors import (etype_form_selector, kwargs_selector, |
21 onelinerset_selector, interface_selector, |
21 one_line_rset, interface_selector, |
22 req_form_params_selector, accept_selector) |
22 req_form_params_selector, accept_selector) |
23 from cubicweb.common.view import EntityView |
23 from cubicweb.common.view import EntityView |
24 from cubicweb.web import INTERNAL_FIELD_VALUE, stdmsgs, eid_param |
24 from cubicweb.web import INTERNAL_FIELD_VALUE, stdmsgs, eid_param |
25 from cubicweb.web.controller import NAV_FORM_PARAMETERS |
25 from cubicweb.web.controller import NAV_FORM_PARAMETERS |
26 from cubicweb.web.widgets import checkbox, InputWidget, ComboBoxWidget |
26 from cubicweb.web.widgets import checkbox, InputWidget, ComboBoxWidget |
214 named 'default_ATTRNAME' on the entity instance, where ATTRNAME is the |
214 named 'default_ATTRNAME' on the entity instance, where ATTRNAME is the |
215 name of the attribute being edited. You may use this feature to compute |
215 name of the attribute being edited. You may use this feature to compute |
216 dynamic default values such as the 'tomorrow' date or the user's login |
216 dynamic default values such as the 'tomorrow' date or the user's login |
217 being connected |
217 being connected |
218 """ |
218 """ |
219 __selectors__ = (onelinerset_selector, accept_selector) |
219 __selectors__ = (one_line_rset, accept_selector) |
220 |
220 |
221 id = 'edition' |
221 id = 'edition' |
222 title = _('edition') |
222 title = _('edition') |
223 controller = 'edit' |
223 controller = 'edit' |
224 skip_relations = EntityForm.skip_relations.copy() |
224 skip_relations = EntityForm.skip_relations.copy() |