backport default branch fix 4ec37d33657e (EntityFieldsForm methods implementation) stable
authorFlorent <florent@secondweb.fr>
Wed, 10 Jun 2009 12:24:22 +0200
branchstable
changeset 2089 b1070848726b
parent 2080 3ea388b5b9d8
child 2090 089d1705c89c
backport default branch fix 4ec37d33657e (EntityFieldsForm methods implementation)
web/views/forms.py
--- a/web/views/forms.py	Wed Jun 10 08:21:38 2009 +0200
+++ b/web/views/forms.py	Wed Jun 10 12:24:22 2009 +0200
@@ -514,6 +514,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"""