cleanup tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 07 Apr 2009 19:54:10 +0200
branchtls-sprint
changeset 1275 441201a5c13f
parent 1274 b730932a79b7
child 1276 f213008fad2c
cleanup
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):