comparison MoinMoin/config/multiconfig.py @ 3744:1eabe89b773b

add longer group help text
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sat, 21 Jun 2008 23:58:54 +0200
parents 0702f9386349
children 510db268574b
comparison
equal deleted inserted replaced
3743:49144c908411 3744:1eabe89b773b
621 except ValueError, err: 621 except ValueError, err:
622 return str(err) 622 return str(err)
623 623
624 624
625 options_no_group_name = { 625 options_no_group_name = {
626 'various': ('Various', ( 626 'various': ('Various', None, (
627 ('DesktopEdition', 627 ('DesktopEdition',
628 False, 628 False,
629 'True gives all local users special powers - ONLY use for MMDE style usage!'), 629 'True gives all local users special powers - ONLY use for MMDE style usage!'),
630 ('SecurityPolicy', 630 ('SecurityPolicy',
631 None, 631 None,
950 ('userprefs_disabled', [], None), 950 ('userprefs_disabled', [], None),
951 )), 951 )),
952 } 952 }
953 953
954 options = { 954 options = {
955 'acl': ('Access control lists', ( 955 'acl': ('Access control lists', None, (
956 ('hierarchic', False, 'True to use hierarchical ACLs'), 956 ('hierarchic', False, 'True to use hierarchical ACLs'),
957 ('rights_default', u"Trusted:read,write,delete,revert Known:read,write,delete,revert All:read,write", None), 957 ('rights_default', u"Trusted:read,write,delete,revert Known:read,write,delete,revert All:read,write", None),
958 ('rights_before', u"", None), 958 ('rights_before', u"", None),
959 ('rights_after', u"", None), 959 ('rights_after', u"", None),
960 ('rights_valid', ['read', 'write', 'delete', 'revert', 'admin'], None), 960 ('rights_valid', ['read', 'write', 'delete', 'revert', 'admin'], None),
961 )), 961 )),
962 962
963 'xapian': ('Xapian search', ( 963 'xapian': ('Xapian search', None, (
964 ('search', False, None), 964 ('search', False, None),
965 ('index_dir', None, None), 965 ('index_dir', None, None),
966 ('stemming', False, None), 966 ('stemming', False, None),
967 ('index_history', False, None), 967 ('index_history', False, None),
968 )), 968 )),
969 969
970 'user': ('Users / User settings', ( 970 'user': ('Users / User settings', None, (
971 ('autocreate', False, None), 971 ('autocreate', False, None),
972 ('email_unique', True, None), 972 ('email_unique', True, None),
973 ('jid_unique', True, None), 973 ('jid_unique', True, None),
974 974
975 ('homewiki', 'Self', None), 975 ('homewiki', 'Self', None),
1046 ('transient_fields', 1046 ('transient_fields',
1047 ['id', 'valid', 'may', 'auth_username', 'password', 'password2', 'auth_method', 'auth_attribs', ], 1047 ['id', 'valid', 'may', 'auth_username', 'password', 'password2', 'auth_method', 'auth_attribs', ],
1048 None), 1048 None),
1049 )), 1049 )),
1050 1050
1051 'backup': ('Backup', ( 1051 'backup': ('Backup', None, (
1052 ('compression', 'gz', None), 1052 ('compression', 'gz', None),
1053 ('users', [], None), 1053 ('users', [], None),
1054 ('include', [], None), 1054 ('include', [], None),
1055 ('exclude', 1055 ('exclude',
1056 [ 1056 [
1062 None), 1062 None),
1063 ('storage_dir', '/tmp', None), 1063 ('storage_dir', '/tmp', None),
1064 ('restore_target_dir', '/tmp', None), 1064 ('restore_target_dir', '/tmp', None),
1065 )), 1065 )),
1066 1066
1067 'openid_server': ('OpenID Server', ( 1067 'openid_server': ('OpenID Server',
1068 'These settings control the built-in OpenID Identity Provider (server).',
1069 (
1068 ('enabled', False, None), 1070 ('enabled', False, None),
1069 ('restricted_users_group', None, None), 1071 ('restricted_users_group', None, None),
1070 ('enable_user', False, None), 1072 ('enable_user', False, None),
1071 )), 1073 )),
1072 } 1074 }
1073 1075
1074 def _add_options_to_defconfig(opts, addgroup=True): 1076 def _add_options_to_defconfig(opts, addgroup=True):
1075 for groupname in opts: 1077 for groupname in opts:
1076 group_doc, group_opts = opts[groupname] 1078 group_short, group_doc, group_opts = opts[groupname]
1077 for name, default, doc in group_opts: 1079 for name, default, doc in group_opts:
1078 if addgroup: 1080 if addgroup:
1079 name = groupname + '_' + name 1081 name = groupname + '_' + name
1080 setattr(DefaultConfig, name, default) 1082 setattr(DefaultConfig, name, default)
1081 1083