samba-tool: moved takes_optiongroups definition to Command base class
commitf6fa8684896b8f3f9f8b7bd3742c99906973274c
authorGiampaolo Lauria <lauria2@yahoo.com>
Fri, 15 Jul 2011 16:07:03 +0000 (15 12:07 -0400)
committerAndrew Tridgell <tridge@samba.org>
Thu, 21 Jul 2011 00:32:24 +0000 (21 10:32 +1000)
tree633d65aa65aac5ee2d0ae431f549f970c10f4aa7
parent1dfcb019d2dcca1d21ec32ee05bf7da15ca84e9f
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>
19 files changed:
source4/scripting/python/samba/netcmd/__init__.py
source4/scripting/python/samba/netcmd/dbcheck.py
source4/scripting/python/samba/netcmd/delegation.py
source4/scripting/python/samba/netcmd/domain.py
source4/scripting/python/samba/netcmd/drs.py
source4/scripting/python/samba/netcmd/dsacl.py
source4/scripting/python/samba/netcmd/fsmo.py
source4/scripting/python/samba/netcmd/gpo.py
source4/scripting/python/samba/netcmd/group.py
source4/scripting/python/samba/netcmd/ldapcmp.py
source4/scripting/python/samba/netcmd/netacl.py
source4/scripting/python/samba/netcmd/newuser.py
source4/scripting/python/samba/netcmd/ntacl.py
source4/scripting/python/samba/netcmd/rodc.py
source4/scripting/python/samba/netcmd/spn.py
source4/scripting/python/samba/netcmd/testparm.py
source4/scripting/python/samba/netcmd/time.py
source4/scripting/python/samba/netcmd/user.py
source4/scripting/python/samba/netcmd/vampire.py