cubicweb/web/box.py
changeset 12567 26744ad37953
parent 12503 b01dd0ef43aa
equal deleted inserted replaced
12566:6b3523f81f42 12567:26744ad37953
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """abstract box classes for CubicWeb web client"""
    18 """abstract box classes for CubicWeb web client"""
    19 
    19 
    20 
    20 
    21 from cubicweb import _
    21 from cubicweb import _
    22 
       
    23 from six import add_metaclass
       
    24 
    22 
    25 from logilab.mtconverter import xml_escape
    23 from logilab.mtconverter import xml_escape
    26 from logilab.common.deprecation import class_deprecated
    24 from logilab.common.deprecation import class_deprecated
    27 
    25 
    28 from cubicweb import Unauthorized, role as get_role
    26 from cubicweb import Unauthorized, role as get_role
    56     return result
    54     return result
    57 
    55 
    58 
    56 
    59 # old box system, deprecated ###################################################
    57 # old box system, deprecated ###################################################
    60 
    58 
    61 @add_metaclass(class_deprecated)
    59 class BoxTemplate(View, metaclass=class_deprecated):
    62 class BoxTemplate(View):
       
    63     """base template for boxes, usually a (contextual) list of possible
    60     """base template for boxes, usually a (contextual) list of possible
    64     actions. Various classes attributes may be used to control the box
    61     actions. Various classes attributes may be used to control the box
    65     rendering.
    62     rendering.
    66 
    63 
    67     You may override one of the formatting callbacks if this is not necessary
    64     You may override one of the formatting callbacks if this is not necessary