web/views/autoform.py
changeset 4160 3fbdeef9a610
parent 4110 8728d8c95985
child 4164 119a374c5eb4
--- a/web/views/autoform.py	Mon Dec 21 19:45:24 2009 +0100
+++ b/web/views/autoform.py	Mon Dec 21 19:52:21 2009 +0100
@@ -5,6 +5,7 @@
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
 """
+
 __docformat__ = "restructuredtext en"
 _ = unicode
 
@@ -318,7 +319,7 @@
         by default true if there is no related entity or if the relation has
         multiple cardinality
         """
-        return not existant or card in '+*'
+        return not existant or card in '+*' # XXX add target type permisssions
 
     def should_hide_add_new_relation_link(self, rschema, card):
         """return true if once an inlined creation form is added, the 'add new'