[reledit] repair some brokennes
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 11 Mar 2011 12:17:32 +0100
changeset 7077 784d6f300070
parent 7076 0eed6045d785
child 7109 611663348158
[reledit] repair some brokennes
web/views/reledit.py
--- a/web/views/reledit.py	Wed Jan 19 19:19:57 2011 +0100
+++ b/web/views/reledit.py	Fri Mar 11 12:17:32 2011 +0100
@@ -87,7 +87,7 @@
         assert rtype
         self._cw.add_css('cubicweb.form.css')
         self._cw.add_js(('cubicweb.reledit.js', 'cubicweb.edition.js', 'cubicweb.ajax.js'))
-        entity = self.cw_rset.get_entity(row, col)
+        self.entity = self.cw_rset.get_entity(row, col)
         rschema = self._cw.vreg.schema[rtype]
         self._rules = rctrl.etype_get(self.entity.e_schema.type, rschema.type, role, '*')
         if rvid is not None or default_value is not None:
@@ -220,7 +220,7 @@
         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)