Implement EntityFieldsForm methods so that EntityFormRenderer works out of the box
authorFabrice <fabrice@secondweb.fr>
Wed, 10 Jun 2009 10:26:52 +0200
changeset 2088 4ec37d33657e
parent 2084 923788d1f9c6
child 2103 41840b1a2a1a
Implement EntityFieldsForm methods so that EntityFormRenderer works out of the box
web/views/forms.py
--- a/web/views/forms.py	Wed Jun 10 10:01:06 2009 +0200
+++ b/web/views/forms.py	Wed Jun 10 10:26:52 2009 +0200
@@ -513,6 +513,12 @@
             results.append((state.view('combobox'), state.eid))
         return sorted(results)
 
+    def srelations_by_category(self, categories=None, permission=None):
+        return ()
+
+    def should_display_add_new_relation_link(self, rschema, existant, card):
+        return False
+
 
 class CompositeForm(FieldsForm):
     """form composed for sub-forms"""