[autoform] no need to recheck inlined tag here
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 25 Sep 2009 11:57:06 +0200
changeset 3483 feedfe5d4932
parent 3482 9a868f462fa4
child 3484 52e6c8d62ac6
[autoform] no need to recheck inlined tag here
web/views/autoform.py
--- a/web/views/autoform.py	Fri Sep 25 11:56:31 2009 +0200
+++ b/web/views/autoform.py	Fri Sep 25 11:57:06 2009 +0200
@@ -250,9 +250,11 @@
     def should_inline_relation_form(self, rschema, targettype, role):
         """return true if the given relation with entity has role and a
         targettype target should be inlined
+
+        At this point we now relation has inlined_attributes tag (eg is returned
+        by `inlined_relations()`. Overrides this for more finer control.
         """
-        return self.rinlined.etype_get(self.edited_entity.__regid__, rschema, role,
-                                       targettype)
+        return True
 
     def display_inline_edition_form(self, w, rschema, targettype, role,
                                      i18nctx):