summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Wirtel <stephane@tinyerp.com>2008-12-19 01:37:50 +0100
committerStephane Wirtel <stephane@tinyerp.com>2008-12-19 01:37:50 +0100
commitd8f6486bee8dc0eccb3fa7e8d2d270ff990cde95 (patch)
tree526db647e8d2f3135e770de027d67adfd0826b14
parent4007fbd321452eef5911b917b329bd9c423e8891 (diff)
[IMP] Group for the smtp configuration
bzr revid: stephane@tinyerp.com-20081219003750-46tbdlmrhusdur8j
-rw-r--r--bin/tools/config.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/bin/tools/config.py b/bin/tools/config.py
index 595953e4ab6..4f57bd8c216 100644
--- a/bin/tools/config.py
+++ b/bin/tools/config.py
@@ -109,13 +109,15 @@ class configmanager(object):
if hasSSL:
parser.add_option("-S", "--secure", dest="secure", action="store_true", help="launch server over https instead of http", default=False)
- parser.add_option('--email-from', dest='email_from', default='', help='specify the SMTP email address for sending email')
- parser.add_option('--smtp', dest='smtp_server', default='', help='specify the SMTP server for sending email')
- parser.add_option('--smtp-port', dest='smtp_port', default='25', help='specify the SMTP port')
- parser.add_option('--smtp-ssl', dest='smtp_ssl', default='', help='specify the SMTP server support SSL or not')
- parser.add_option('--smtp-user', dest='smtp_user', default='', help='specify the SMTP username for sending email')
- parser.add_option('--smtp-password', dest='smtp_password', default='', help='specify the SMTP password for sending email')
- parser.add_option('--price_accuracy', dest='price_accuracy', default='2', help='specify the price accuracy')
+ group = optparse.OptionGroup(parser, "SMTP Configuration")
+ group.add_option('--email-from', dest='email_from', default='', help='specify the SMTP email address for sending email')
+ group.add_option('--smtp', dest='smtp_server', default='', help='specify the SMTP server for sending email')
+ group.add_option('--smtp-port', dest='smtp_port', default='25', help='specify the SMTP port')
+ group.add_option('--smtp-ssl', dest='smtp_ssl', default='', help='specify the SMTP server support SSL or not')
+ group.add_option('--smtp-user', dest='smtp_user', default='', help='specify the SMTP username for sending email')
+ group.add_option('--smtp-password', dest='smtp_password', default='', help='specify the SMTP password for sending email')
+ group.add_option('--price_accuracy', dest='price_accuracy', default='2', help='specify the price accuracy')
+ parser.add_option_group(group)
group = optparse.OptionGroup(parser, "Modules related options")
group.add_option("-g", "--upgrade", action="store_true", dest="upgrade", default=False, help="Upgrade/install/uninstall modules")