web/views/reledit.py
branchstable
changeset 7151 04d0624a1832
parent 7070 5f8e52d722c5
child 7156 b1521f1546e0
equal deleted inserted replaced
7149:9dfd0dea692b 7151:04d0624a1832
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    14 # details.
    14 # details.
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """the 'reedit' feature (eg edit attribute/relation from primary view"""
    18 """the 'reledit' feature (eg edit attribute/relation from primary view)"""
    19 
    19 
    20 __docformat__ = "restructuredtext en"
    20 __docformat__ = "restructuredtext en"
    21 _ = unicode
    21 _ = unicode
    22 
    22 
    23 import copy
    23 import copy
   219 
   219 
   220     def _build_edit_zone(self):
   220     def _build_edit_zone(self):
   221         return self._build_zone(self._editzone, self._editzonemsg, self._editlogo)
   221         return self._build_zone(self._editzone, self._editzonemsg, self._editlogo)
   222 
   222 
   223     def _build_delete_zone(self):
   223     def _build_delete_zone(self):
   224         return self._build_zone(self._deletezone, self._deletezonemsg, self._deletelogo)
   224         return self._build_zone(self._deletezone, self._deletemsg, self._deletelogo)
   225 
   225 
   226     def _build_add_zone(self):
   226     def _build_add_zone(self):
   227         return self._build_zone(self._addzone, self._addzonemsg, self._addlogo)
   227         return self._build_zone(self._addzone, self._addmsg, self._addlogo)
   228 
   228 
   229     def _build_divid(self, rtype, role, entity_eid):
   229     def _build_divid(self, rtype, role, entity_eid):
   230         """ builds an id for the root div of a reledit widget """
   230         """ builds an id for the root div of a reledit widget """
   231         return '%s-%s-%s' % (rtype, role, entity_eid)
   231         return '%s-%s-%s' % (rtype, role, entity_eid)
   232 
   232