web/views/basecomponents.py
changeset 8190 2a3c1b787688
parent 8080 623432dc1deb
child 8244 c7d89541e3c5
equal deleted inserted replaced
8189:2ee0ef069fa7 8190:2a3c1b787688
     1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2012 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
    24 
    24 
    25 __docformat__ = "restructuredtext en"
    25 __docformat__ = "restructuredtext en"
    26 _ = unicode
    26 _ = unicode
    27 
    27 
    28 from logilab.mtconverter import xml_escape
    28 from logilab.mtconverter import xml_escape
       
    29 from logilab.common.registry import yes
    29 from logilab.common.deprecation import class_renamed
    30 from logilab.common.deprecation import class_renamed
    30 from rql import parse
    31 from rql import parse
    31 
    32 
    32 from cubicweb.selectors import (yes, match_form_params, match_context,
    33 from cubicweb.predicates import (match_form_params, match_context,
    33                                 multi_etypes_rset, configuration_values,
    34                                  multi_etypes_rset, configuration_values,
    34                                 anonymous_user, authenticated_user)
    35                                  anonymous_user, authenticated_user)
    35 from cubicweb.schema import display_name
    36 from cubicweb.schema import display_name
    36 from cubicweb.utils import wrap_on_write
    37 from cubicweb.utils import wrap_on_write
    37 from cubicweb.uilib import toggle_action
    38 from cubicweb.uilib import toggle_action
    38 from cubicweb.web import component, uicfg
    39 from cubicweb.web import component, uicfg
    39 from cubicweb.web.htmlwidgets import MenuWidget, PopupBoxMenu
    40 from cubicweb.web.htmlwidgets import MenuWidget, PopupBoxMenu