# HG changeset patch # User Aurelien Campeas # Date 1247842250 -7200 # Node ID c399bd6a9c38bd9c52942ae06698cf47397ab65d # Parent ea1defea9636019bac9b6ff9ec4bf72f08e613ed [reledit] separate value from landing zone diff -r ea1defea9636 -r c399bd6a9c38 cwvreg.py --- a/cwvreg.py Thu Jul 16 17:00:55 2009 +0200 +++ b/cwvreg.py Fri Jul 17 16:50:50 2009 +0200 @@ -414,7 +414,7 @@ """return an instance of the most specific object according to parameters - raise NoSelectableObject if not object apply + raise NoSelectableObject if no object apply """ for vobjectcls in vobjects: self._fix_cls_attrs(vobjectcls) diff -r ea1defea9636 -r c399bd6a9c38 web/views/editforms.py --- a/web/views/editforms.py Thu Jul 16 17:00:55 2009 +0200 +++ b/web/views/editforms.py Fri Jul 17 16:50:50 2009 +0200 @@ -166,7 +166,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,8 @@ onclick=cancelclick)]) 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(u'
%s ' % (divid, value)) + self.w(tags.div(lzone, klass='editableField', id=divid, onclick=self._onclick % event_data)) renderer = self._build_renderer(entity, rtype, role) self.w(form.form_render(renderer=renderer))