mirror of
https://github.com/samba-team/samba.git
synced 2025-07-25 00:59:11 +03:00
Revert "samba-tool: moved takes_optiongroups definition to Command base class"
This reverts commit f6fa868489
.
This keeps the main command class fairly slim, and makes it a bit
more obvious where the arguments to run() are coming from.
Conflicts:
source4/scripting/python/samba/netcmd/__init__.py
source4/scripting/python/samba/netcmd/domain.py
source4/scripting/python/samba/netcmd/gpo.py
source4/scripting/python/samba/netcmd/newuser.py
source4/scripting/python/samba/netcmd/testparm.py
source4/scripting/python/samba/netcmd/user.py
source4/scripting/python/samba/tests/samba_tool/__init__.py
This commit is contained in:
@ -3,7 +3,6 @@
|
||||
# Manipulate ACLs on directory objects
|
||||
#
|
||||
# Copyright (C) Nadezhda Ivanova <nivanova@samba.org> 2010
|
||||
# Copyright Giampaolo Lauria 2011 <lauria2@yahoo.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -53,6 +52,12 @@ class cmd_dsacl_set(Command):
|
||||
synopsis = "%prog [options]"
|
||||
car_help = """ The access control right to allow or deny """
|
||||
|
||||
takes_optiongroups = {
|
||||
"sambaopts": options.SambaOptions,
|
||||
"credopts": options.CredentialsOptions,
|
||||
"versionopts": options.VersionOptions,
|
||||
}
|
||||
|
||||
takes_options = [
|
||||
Option("-H", "--URL", help="LDB URL for database or target server",
|
||||
type=str, metavar="URL", dest="H"),
|
||||
|
Reference in New Issue
Block a user