web/component.py
branchtls-sprint
changeset 659 5d754a1933cb
parent 658 b5c73b5cdc68
child 661 4f61eb8a96b7
equal deleted inserted replaced
658:b5c73b5cdc68 659:5d754a1933cb
    15 from cubicweb.common.registerers import action_registerer
    15 from cubicweb.common.registerers import action_registerer
    16 from cubicweb.common.uilib import html_escape
    16 from cubicweb.common.uilib import html_escape
    17 
    17 
    18 _ = unicode
    18 _ = unicode
    19 
    19 
    20 class VComponent(ComponentMixIn, View): pass
    20 class VComponent(ComponentMixIn, View):
       
    21     property_defs = {
       
    22         _('visible'):  dict(type='Boolean', default=True,
       
    23                             help=_('display the box or not')),
       
    24         }    
    21 
    25 
    22 class EntityVComponent(VComponent):
    26 class EntityVComponent(VComponent):
    23     """abstract base class for additinal components displayed in content
    27     """abstract base class for additinal components displayed in content
    24     headers and footer according to:
    28     headers and footer according to:
    25     
    29