[reledit] fix crash due to wrong attributes usage stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 31 Mar 2011 15:18:21 +0200
branchstable
changeset 7151 04d0624a1832
parent 7149 9dfd0dea692b
child 7155 4bab50b02927
[reledit] fix crash due to wrong attributes usage
web/views/reledit.py
--- a/web/views/reledit.py	Thu Mar 31 09:17:43 2011 +0200
+++ b/web/views/reledit.py	Thu Mar 31 15:18:21 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -15,7 +15,7 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""the 'reedit' feature (eg edit attribute/relation from primary view"""
+"""the 'reledit' feature (eg edit attribute/relation from primary view)"""
 
 __docformat__ = "restructuredtext en"
 _ = unicode
@@ -221,10 +221,10 @@
         return self._build_zone(self._editzone, self._editzonemsg, self._editlogo)
 
     def _build_delete_zone(self):
-        return self._build_zone(self._deletezone, self._deletezonemsg, self._deletelogo)
+        return self._build_zone(self._deletezone, self._deletemsg, self._deletelogo)
 
     def _build_add_zone(self):
-        return self._build_zone(self._addzone, self._addzonemsg, self._addlogo)
+        return self._build_zone(self._addzone, self._addmsg, self._addlogo)
 
     def _build_divid(self, rtype, role, entity_eid):
         """ builds an id for the root div of a reledit widget """