web/views/baseforms.py
branchtls-sprint
changeset 1275 441201a5c13f
parent 1181 620ec8e6ae19
child 1289 5eff2ef92977
--- 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):