# HG changeset patch # User Aurelien Campeas # Date 1247855106 -7200 # Node ID 4f6bfffbfb80a6dab1504e7d89539340833704da # Parent fddb0fd11321dfdd93bd995994d95fca36c51ac5 [reledit] backport default branch fix diff -r fddb0fd11321 -r 4f6bfffbfb80 web/views/editforms.py --- a/web/views/editforms.py Fri Jul 17 08:17:39 2009 +0200 +++ b/web/views/editforms.py Fri Jul 17 20:25:06 2009 +0200 @@ -165,7 +165,6 @@ def _relation_form(self, entity, value, rtype, role, row, col, reload, rvid, default, lzone): lzone = self._build_landing_zone(lzone) - value = lzone + value divid = 'd%s' % make_uid('%s-%s' % (rtype, entity.eid)) event_data = {'divid' : divid, 'eid' : entity.eid, 'rtype' : rtype, 'vid' : rvid, 'reload' : reload, 'default' : default, 'role' : role, @@ -184,8 +183,9 @@ field = guess_field(entity.e_schema, entity.schema.rschema(rtype), role) form.append_field(field) self.w(u'
' % divid) - self.w(tags.div(value, klass='editableField', id=divid, + self.w(tags.div(lzone, klass='editableField', id=divid, onclick=self._onclick % event_data)) + self.w(value) renderer = self._build_renderer(entity, rtype, role) self.w(form.form_render(renderer=renderer)) self.w(u'
')