should specify role tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 12 May 2009 20:53:45 +0200
branchtls-sprint
changeset 1767 f0ba5a07e271
parent 1766 6c23a5e0c490
child 1768 b59b7c422a8a
should specify role
web/views/editforms.py
--- a/web/views/editforms.py	Tue May 12 20:52:36 2009 +0200
+++ b/web/views/editforms.py	Tue May 12 20:53:45 2009 +0200
@@ -133,7 +133,7 @@
                                               Button(stdmsgs.BUTTON_CANCEL,
                                                      onclick="cancelInlineEdit(%s,\'%s\',\'%s\')" %\
                                                          (entity.eid, rtype, divid))])
-        form.append_field(RelationField(name=rtype, sort=True,
+        form.append_field(RelationField(name=rtype, role=role, sort=True,
                                         widget=Select(),
                                         label=u' '))
         self.w(tags.div(value, klass='editableField', id=divid,