web/views/editforms.py
changeset 2686 c700ace6ebfd
parent 2679 3fa8c0cec760
child 2789 39712da6f397
child 3062 a8e901fc4457
child 3384 f76a38731bc1
--- a/web/views/editforms.py	Tue Aug 04 18:44:24 2009 +0200
+++ b/web/views/editforms.py	Tue Aug 04 18:46:59 2009 +0200
@@ -95,9 +95,10 @@
 
 
 class ClickAndEditFormView(FormViewMixIn, EntityView):
-    """form used to permit ajax edition of an attribute of an entity in a view
+    """form used to permit ajax edition of a relation or attribute of an entity
+    in a view, if logged user have the permission to edit it.
 
-    (double-click on the field to see an appropriate edition widget)
+    (double-click on the field to see an appropriate edition widget).
     """
     id = 'doreledit'
     __select__ = non_final_entity() & match_kwargs('rtype')
@@ -272,8 +273,6 @@
             self.wview(vid, entity.related(rtype, role), 'null')
             return False
         if eschema.role_rproperty(role, rschema, 'composite') == role:
-            self.warning('reledit cannot be applied : (... %s %s [composite])'
-                         % (rschema, eschema))
             self.wview(rvid, entity.related(rtype, role), 'null')
             return False
         return super(AutoClickAndEditFormView, self).should_edit_relation(