equal
deleted
inserted
replaced
216 the `Person displayed_on File` relation. We can do this simply by adding a |
216 the `Person displayed_on File` relation. We can do this simply by adding a |
217 :class:`AjaxEditRelationCtxComponent` subclass to our views, as below: |
217 :class:`AjaxEditRelationCtxComponent` subclass to our views, as below: |
218 |
218 |
219 .. sourcecode:: python |
219 .. sourcecode:: python |
220 |
220 |
|
221 from cubicweb import _ |
221 from logilab.common.decorators import monkeypatch |
222 from logilab.common.decorators import monkeypatch |
222 from cubicweb import ValidationError |
223 from cubicweb import ValidationError |
223 from cubicweb.web.views import uicfg, component |
224 from cubicweb.web.views import uicfg, component |
224 from cubicweb.web.views import basecontrollers |
225 from cubicweb.web.views import basecontrollers |
225 |
226 |