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 |
29 from logilab.mtconverter import xml_escape |
29 from logilab.mtconverter import xml_escape |
30 |
30 |
31 from cubicweb.view import StartupView |
31 from cubicweb.view import StartupView |
32 from cubicweb.selectors import match_user_groups, is_instance |
32 from cubicweb.selectors import match_user_groups, is_instance |
33 from cubicweb.schema import display_name |
33 from cubicweb.schema import display_name |
34 from cubicweb.web import ajax_replace_url, uicfg, httpcache |
34 from cubicweb.web import uicfg, httpcache |
35 |
35 |
36 class ManageView(StartupView): |
36 class ManageView(StartupView): |
37 """:__regid__: *manage* |
37 """:__regid__: *manage* |
38 |
38 |
39 The manage view, display some information about what's contained by your |
39 The manage view, display some information about what's contained by your |
51 title = _('manage') |
51 title = _('manage') |
52 http_cache_manager = httpcache.EtagHTTPCacheManager |
52 http_cache_manager = httpcache.EtagHTTPCacheManager |
53 add_etype_links = () |
53 add_etype_links = () |
54 skip_startup_views = set( ('index', 'manage', 'schema', 'owl', 'changelog', |
54 skip_startup_views = set( ('index', 'manage', 'schema', 'owl', 'changelog', |
55 'systempropertiesform', 'propertiesform', |
55 'systempropertiesform', 'propertiesform', |
56 'cw.user-management', 'cw.source-management', |
56 'loggedout', 'login', |
|
57 'cw.users-and-groups-management', 'cw.groups-management', |
|
58 'cw.users-management', 'cw.sources-management', |
57 'siteinfo', 'info', 'registry', 'gc', |
59 'siteinfo', 'info', 'registry', 'gc', |
58 'tree') ) |
60 'tree') ) |
59 |
61 |
60 def call(self, **kwargs): |
62 def call(self, **kwargs): |
61 """The default view representing the instance's management""" |
63 """The default view representing the instance's management""" |