equal
deleted
inserted
replaced
130 # (esp. needed when values are links) |
130 # (esp. needed when values are links) |
131 ): |
131 ): |
132 """display field to edit entity's `rtype` relation on click""" |
132 """display field to edit entity's `rtype` relation on click""" |
133 assert rtype |
133 assert rtype |
134 assert role in ('subject', 'object'), '%s is not an acceptable role value' % role |
134 assert role in ('subject', 'object'), '%s is not an acceptable role value' % role |
135 self.req.add_js('cubicweb.edition.js') |
135 self._cw.add_js('cubicweb.edition.js') |
136 self.req.add_css('cubicweb.form.css') |
136 self._cw.add_css('cubicweb.form.css') |
137 if default is None: |
137 if default is None: |
138 default = xml_escape(self._cw._('<no value>')) |
138 default = xml_escape(self._cw._('<no value>')) |
139 schema = self._cw.vreg.schema |
139 schema = self._cw.vreg.schema |
140 entity = self.cw_rset.get_entity(row, col) |
140 entity = self.cw_rset.get_entity(row, col) |
141 rschema = schema.rschema(rtype) |
141 rschema = schema.rschema(rtype) |