should give entity class here tls-sprint
authorsylvain.thenault@logilab.fr
Mon, 06 Apr 2009 12:37:45 +0200
branchtls-sprint
changeset 1246 76b3cd5d4f31
parent 1234 4d5ff6a3d539
child 1263 01152fffd593
should give entity class here
web/views/editviews.py
--- a/web/views/editviews.py	Mon Apr 06 12:20:28 2009 +0200
+++ b/web/views/editviews.py	Mon Apr 06 12:37:45 2009 +0200
@@ -127,7 +127,7 @@
         rtype = rschema.type
         form = self.vreg.select_object('forms', 'edition', self.req,
                                        entity=entity)
-        field = form.field_by_name(rschema, target)
+        field = form.field_by_name(rschema, target, entity.__class__)
         for eview, reid in form.form_field_vocabulary(field, self.limit):
             if reid is None:
                 options.append('<option class="separator">-- %s --</option>'