web/views/basecomponents.py
branchstable
changeset 1937 fc702ea02b25
parent 1739 78b0819162a8
child 1968 d3de0f44b57b
equal deleted inserted replaced
1932:984d224eed35 1937:fc702ea02b25
     6 :organization: Logilab
     6 :organization: Logilab
     7 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     7 :copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     8 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     8 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
     9 """
     9 """
    10 __docformat__ = "restructuredtext en"
    10 __docformat__ = "restructuredtext en"
       
    11 _ = unicode
    11 
    12 
    12 from rql import parse
    13 from rql import parse
    13 
    14 
    14 from cubicweb.selectors import yes, two_etypes_rset, match_form_params
    15 from cubicweb.selectors import yes, two_etypes_rset, match_form_params
    15 from cubicweb.schema import display_name
    16 from cubicweb.schema import display_name
    16 from cubicweb.common.uilib import html_escape, toggle_action
    17 from cubicweb.common.uilib import html_escape, toggle_action
    17 from cubicweb.web import component
    18 from cubicweb.web import component
    18 from cubicweb.web.htmlwidgets import (MenuWidget, PopupBoxMenu, BoxSeparator,
    19 from cubicweb.web.htmlwidgets import (MenuWidget, PopupBoxMenu, BoxSeparator,
    19                                       BoxLink)
    20                                       BoxLink)
    20 
       
    21 _ = unicode
       
    22 
    21 
    23 VISIBLE_PROP_DEF = {
    22 VISIBLE_PROP_DEF = {
    24     _('visible'):  dict(type='Boolean', default=False,
    23     _('visible'):  dict(type='Boolean', default=False,
    25                         help=_('display the component or not')),
    24                         help=_('display the component or not')),
    26     }
    25     }