From a8dc4a5bba8cb127c9c84df7884a4f22b967f644 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 10 Mar 2013 21:45:51 +0100 Subject: [PATCH] exemple EAD --- .../documents/tronc-commun-2/ead/actions_ls.cfg | 1 + .../documents/tronc-commun-2/ead/cmd_ls.py | 12 ++++++++++++ .../documents/tronc-commun-2/ead/ls.cmd | 1 + .../documents/tronc-commun-2/ead/perm_ls.ini | 5 +++++ 4 files changed, 19 insertions(+) create mode 100644 modules_EOLE_envole/documents/tronc-commun-2/ead/actions_ls.cfg create mode 100644 modules_EOLE_envole/documents/tronc-commun-2/ead/cmd_ls.py create mode 100644 modules_EOLE_envole/documents/tronc-commun-2/ead/ls.cmd create mode 100644 modules_EOLE_envole/documents/tronc-commun-2/ead/perm_ls.ini diff --git a/modules_EOLE_envole/documents/tronc-commun-2/ead/actions_ls.cfg b/modules_EOLE_envole/documents/tronc-commun-2/ead/actions_ls.cfg new file mode 100644 index 0000000..4be5758 --- /dev/null +++ b/modules_EOLE_envole/documents/tronc-commun-2/ead/actions_ls.cfg @@ -0,0 +1 @@ +cmd_ls diff --git a/modules_EOLE_envole/documents/tronc-commun-2/ead/cmd_ls.py b/modules_EOLE_envole/documents/tronc-commun-2/ead/cmd_ls.py new file mode 100644 index 0000000..54e717a --- /dev/null +++ b/modules_EOLE_envole/documents/tronc-commun-2/ead/cmd_ls.py @@ -0,0 +1,12 @@ +# -*- coding: UTF-8 -*- +from ead2.backend.actions.lib.main import Cmd + +class Cmd_Ls(Cmd): + """ + Action du mode commande + """ + name = "cmd_ls" + # propriété de la commande à exécuter + cmd_template = "/bin/ls /tmp" + cmd_libelle = "ls sur /tmp" + diff --git a/modules_EOLE_envole/documents/tronc-commun-2/ead/ls.cmd b/modules_EOLE_envole/documents/tronc-commun-2/ead/ls.cmd new file mode 100644 index 0000000..4be5758 --- /dev/null +++ b/modules_EOLE_envole/documents/tronc-commun-2/ead/ls.cmd @@ -0,0 +1 @@ +cmd_ls diff --git a/modules_EOLE_envole/documents/tronc-commun-2/ead/perm_ls.ini b/modules_EOLE_envole/documents/tronc-commun-2/ead/perm_ls.ini new file mode 100644 index 0000000..66ea65d --- /dev/null +++ b/modules_EOLE_envole/documents/tronc-commun-2/ead/perm_ls.ini @@ -0,0 +1,5 @@ +[roles] +admin=Administrateur + +[permissions] +cmd_ls=admin