exemple EAD
This commit is contained in:
parent
f0aa10cf73
commit
a8dc4a5bba
|
@ -0,0 +1 @@
|
|||
cmd_ls
|
|
@ -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"
|
||||
|
|
@ -0,0 +1 @@
|
|||
cmd_ls
|
|
@ -0,0 +1,5 @@
|
|||
[roles]
|
||||
admin=Administrateur
|
||||
|
||||
[permissions]
|
||||
cmd_ls=admin
|
Loading…
Reference in New Issue