mirror of
https://github.com/samba-team/samba.git
synced 2025-07-04 00:59:13 +03:00
samba-tool: moved takes_optiongroups definition to Command base class
The option groups should be defined at the Command base class level as they are in common across all samba-tool commands. Major move advantages: 1. more OOP approach 2. enforcing consistency across commands 3. avoiding the need of declaring for every new command Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
committed by
Andrew Tridgell
parent
1dfcb019d2
commit
f6fa868489
@ -3,6 +3,7 @@
|
||||
# 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
|
||||
@ -50,12 +51,6 @@ class cmd_ds_acl_set(Command):
|
||||
synopsis = "set --objectdn=objectdn --car=control right --action=[deny|allow] --trusteedn=trustee-dn"
|
||||
car_help = """ The access control right to allow or deny """
|
||||
|
||||
takes_optiongroups = {
|
||||
"sambaopts": options.SambaOptions,
|
||||
"credopts": options.CredentialsOptions,
|
||||
"versionopts": options.VersionOptions,
|
||||
}
|
||||
|
||||
takes_options = [
|
||||
Option("--host", help="LDB URL for database or target server",
|
||||
type=str),
|
||||
|
Reference in New Issue
Block a user