# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239126850 -7200 # Node ID 441201a5c13f5ef99f05ba81a074dd7db7189f08 # Parent b730932a79b7a53bc92b8af0ae9f064b83296814 cleanup diff -r b730932a79b7 -r 441201a5c13f web/views/baseforms.py --- a/web/views/baseforms.py Tue Apr 07 19:53:49 2009 +0200 +++ b/web/views/baseforms.py Tue Apr 07 19:54:10 2009 +0200 @@ -327,7 +327,8 @@ # should_* method extracted to allow overriding def should_inline_relation_form(self, entity, rschema, targettype, role): - return AutomaticForm.rinlined.etype_rtag(entity.id, rschema, role, targettype) + return AutomaticEntityForm.rinlined.etype_rtag(entity.id, rschema, role, + targettype) def should_display_inline_relation_form(self, rschema, existant, card): return not existant and card in '1+' @@ -429,7 +430,8 @@ def should_inline_relation_form(self, entity, rschema, targettype, role): if rschema == self.rschema: return False - return AutomaticForm.rinlined.etype_rtag(entity.id, rschema, role, targettype) + return AutomaticEntityForm.rinlined.etype_rtag(entity.id, rschema, role, + targettype) @cached def keep_entity(self, entity):