cubicweb/web/views/startup.py
changeset 12503 b01dd0ef43aa
parent 12328 b570d3094e32
equal deleted inserted replaced
12502:e651d5f24cb5 12503:b01dd0ef43aa
    23 
    23 
    24 
    24 
    25 from cubicweb import _
    25 from cubicweb import _
    26 
    26 
    27 from logilab.common.textutils import unormalize
    27 from logilab.common.textutils import unormalize
    28 from logilab.common.deprecation import deprecated
       
    29 from logilab.mtconverter import xml_escape
    28 from logilab.mtconverter import xml_escape
    30 
    29 
    31 from cubicweb.view import StartupView
    30 from cubicweb.view import StartupView
    32 from cubicweb.predicates import match_user_groups, is_instance
    31 from cubicweb.predicates import match_user_groups, is_instance
    33 from cubicweb.schema import display_name
    32 from cubicweb.schema import display_name
   165     :class:`~cubicweb.web.views.startup.ManageView`, but you'll usually want to
   164     :class:`~cubicweb.web.views.startup.ManageView`, but you'll usually want to
   166     customize this one.
   165     customize this one.
   167     """
   166     """
   168     __regid__ = 'index'
   167     __regid__ = 'index'
   169     title = _('view_index')
   168     title = _('view_index')
   170 
       
   171     @deprecated('[3.11] display_folders method is deprecated, backport it if needed')
       
   172     def display_folders(self):
       
   173         return 'Folder' in self._cw.vreg.schema and self._cw.execute('Any COUNT(X) WHERE X is Folder')[0][0]