equal
deleted
inserted
replaced
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] |
|