exemple EAD

This commit is contained in:
Emmanuel Garette 2013-03-10 21:45:51 +01:00
parent f0aa10cf73
commit a8dc4a5bba
4 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1 @@
cmd_ls

View File

@ -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"

View File

@ -0,0 +1 @@
cmd_ls

View File

@ -0,0 +1,5 @@
[roles]
admin=Administrateur
[permissions]
cmd_ls=admin