#197873: quick access to info for bug report
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Thu, 23 Jul 2009 13:03:50 +0200
changeset 2433 1d46c016a564
parent 2431 93c061eac647
child 2434 ed85d69576b4
child 2438 576f4d51f826
#197873: quick access to info for bug report
web/views/actions.py
web/views/management.py
web/views/urlrewrite.py
--- a/web/views/actions.py	Thu Jul 23 12:47:09 2009 +0200
+++ b/web/views/actions.py	Thu Jul 23 13:03:50 2009 +0200
@@ -286,6 +286,12 @@
     title = _('manage')
     order = 20
 
+class ManageAction(ManagersAction):
+    id = 'siteinfo'
+    title = _('info')
+    order = 30
+    __select__ = match_user_groups('users','managers')
+
 
 from logilab.common.deprecation import class_moved
 from cubicweb.web.views.bookmark import FollowAction
--- a/web/views/management.py	Thu Jul 23 12:47:09 2009 +0200
+++ b/web/views/management.py	Thu Jul 23 13:03:50 2009 +0200
@@ -283,7 +283,7 @@
 
 class ProcessInformationView(StartupView):
     id = 'info'
-    __select__ = none_rset() & match_user_groups('managers')
+    __select__ = none_rset() & match_user_groups('users', 'managers')
 
     title = _('server information')
 
--- a/web/views/urlrewrite.py	Thu Jul 23 12:47:09 2009 +0200
+++ b/web/views/urlrewrite.py	Thu Jul 23 13:03:50 2009 +0200
@@ -76,6 +76,7 @@
         ('/index', dict(vid='index')),
         ('/myprefs', dict(vid='propertiesform')),
         ('/siteconfig', dict(vid='systempropertiesform')),
+        ('/siteinfo', dict(vid='info')),
         ('/manage', dict(vid='manage')),
         ('/notfound', dict(vid='404')),
         ('/error', dict(vid='error')),