Commit 3d72c38e authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Add the node Application. Remove node CAS and configure application, migrate...

Add the node Application. Remove node CAS and configure application, migrate their leaves in Application.
parent 1257dff9
......@@ -33,6 +33,7 @@
'Already in the database': 'Publication déjà enregistré dans la base de donnée',
'An article already exists with the same:': 'Un article existe déja avec le même:',
'AP': 'AP',
'Application': 'Application',
'Are you sure you want to delete this object?': 'Voulez-vous vraiment détruire cet object ?',
'Article': 'Article',
'article': 'article',
......
......@@ -13,27 +13,13 @@ Window = dbui.Window
#-------------------------------------------------------------------------------
#
# CAS
# APPLICATION
#
#-------------------------------------------------------------------------------
casNode = None
if "auth" in globals() and session.role == ADMIN:
casNode = Node(T('CAS'))
casNode.add_child(T('users'), to_grid('auth_user'))
casNode.add_child(T('groups'), to_grid('auth_group'))
casNode.add_child(T('relation user / groups'), to_grid('auth_membership'))
#-------------------------------------------------------------------------------
#
# CONFIGURE APPLICATION
#
#-------------------------------------------------------------------------------
confAppNode = None
appNode = Node
if session.role == ADMIN:
confAppNode = Node(T('Configure the application'))
appNode = Node(T('Application'))
prefLeaf = Window(closable=True,
items=[cfgPreferences],
......@@ -41,7 +27,12 @@ if session.role == ADMIN:
modal=True,
title=T('Preferences'))
confAppNode.add_child(T('preferences'), prefLeaf)
appNode.add_child(T('preferences'), prefLeaf)
if "auth" in globals():
appNode.add_child(T('users'), to_grid('auth_user'))
appNode.add_child(T('groups'), to_grid('auth_group'))
appNode.add_child(T('relation user / groups'), to_grid('auth_membership'))
#-------------------------------------------------------------------------------
#
......@@ -262,9 +253,8 @@ if session.role in (ADMIN, USER):
#
#-------------------------------------------------------------------------------
nodes = [helpNode,
casNode,
appNode,
wizardNode,
confAppNode,
confHarvesterNode,
confListNode,
confMetricNode,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment