a warning for attemps to reledit the wrong side of a composite stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 10 Jul 2009 16:03:54 +0200
branchstable
changeset 2372 cca71dcbeb70
parent 2371 76bf522c27be
child 2373 50e01ff07f06
a warning for attemps to reledit the wrong side of a composite
web/views/editforms.py
--- a/web/views/editforms.py	Fri Jul 10 14:23:35 2009 +0200
+++ b/web/views/editforms.py	Fri Jul 10 16:03:54 2009 +0200
@@ -151,6 +151,8 @@
                 return self.w(value)
             elif get_schema_property(entity.e_schema, rschema,
                                      role, 'composite') == role:
+                self.warning('reledit cannot be applied : (... %s %s [composite])'
+                             % (rtype, entity.e_schema))
                 return self.w(value)
             self._relation_form(entity, value, rtype, role, reload, row, col,
                                 rvid, default, landing_zone)