# HG changeset patch # User Sylvain Thénault # Date 1253872626 -7200 # Node ID feedfe5d49329d7e1f941fbb2f8746d6062fc95d # Parent 9a868f462fa45d0fe7b712b914698431c077ed76 [autoform] no need to recheck inlined tag here diff -r 9a868f462fa4 -r feedfe5d4932 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):