From f6fa8684896b8f3f9f8b7bd3742c99906973274c Mon Sep 17 00:00:00 2001 From: Giampaolo Lauria Date: Fri, 15 Jul 2011 12:07:03 -0400 Subject: 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 --- source4/scripting/python/samba/netcmd/newuser.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source4/scripting/python/samba/netcmd/newuser.py') diff --git a/source4/scripting/python/samba/netcmd/newuser.py b/source4/scripting/python/samba/netcmd/newuser.py index 3581340577b..68a66f6e55f 100644 --- a/source4/scripting/python/samba/netcmd/newuser.py +++ b/source4/scripting/python/samba/netcmd/newuser.py @@ -5,6 +5,7 @@ # # Based on the original in EJS: # Copyright Andrew Tridgell 2005 +# Copyright Giampaolo Lauria 2011 # # 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 @@ -32,12 +33,6 @@ class cmd_newuser(Command): synopsis = "newuser [options] []" - takes_optiongroups = { - "sambaopts": options.SambaOptions, - "versionopts": options.VersionOptions, - "credopts": options.CredentialsOptions, - } - takes_options = [ Option("-H", help="LDB URL for database or target server", type=str), Option("--must-change-at-next-login", -- cgit