Description:
fixed seed script
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r272:c7593402793a - - 1 file changed: 14 inserted, 14 deleted
@@ -13,104 +13,104 | |||||
|
13 |
|
13 | ||
|
14 | CONFIGURATIONS = |
|
14 | CONFIGURATIONS = |
|
15 | [ |
|
15 | [ |
|
16 | { |
|
16 | { |
|
17 | :key => 'system.single_user_mode', |
|
17 | :key => 'system.single_user_mode', |
|
18 | :value_type => 'boolean', |
|
18 | :value_type => 'boolean', |
|
19 | - :value => 'false', |
|
19 | + :default_value => 'false', |
|
20 | :description => 'Only admins can log in to the system when running under single user mode.' |
|
20 | :description => 'Only admins can log in to the system when running under single user mode.' |
|
21 | }, |
|
21 | }, |
|
22 |
|
22 | ||
|
23 | { |
|
23 | { |
|
24 | :key => 'ui.front.title', |
|
24 | :key => 'ui.front.title', |
|
25 | :value_type => 'string', |
|
25 | :value_type => 'string', |
|
26 | - :value => 'Grader' |
|
26 | + :default_value => 'Grader' |
|
27 | }, |
|
27 | }, |
|
28 |
|
28 | ||
|
29 | { |
|
29 | { |
|
30 | :key => 'ui.front.welcome_message', |
|
30 | :key => 'ui.front.welcome_message', |
|
31 | :value_type => 'string', |
|
31 | :value_type => 'string', |
|
32 | - :value => 'Welcome!' |
|
32 | + :default_value => 'Welcome!' |
|
33 | }, |
|
33 | }, |
|
34 |
|
34 | ||
|
35 | { |
|
35 | { |
|
36 | :key => 'ui.show_score', |
|
36 | :key => 'ui.show_score', |
|
37 | :value_type => 'boolean', |
|
37 | :value_type => 'boolean', |
|
38 | - :value => 'true' |
|
38 | + :default_value => 'true' |
|
39 | }, |
|
39 | }, |
|
40 |
|
40 | ||
|
41 | { |
|
41 | { |
|
42 | :key => 'contest.time_limit', |
|
42 | :key => 'contest.time_limit', |
|
43 | :value_type => 'string', |
|
43 | :value_type => 'string', |
|
44 | - :value => 'unlimited', |
|
44 | + :default_value => 'unlimited', |
|
45 | :description => 'Time limit in format hh:mm, or "unlimited" for contests with no time limits.' |
|
45 | :description => 'Time limit in format hh:mm, or "unlimited" for contests with no time limits.' |
|
46 | }, |
|
46 | }, |
|
47 |
|
47 | ||
|
48 | { |
|
48 | { |
|
49 | :key => 'system.mode', |
|
49 | :key => 'system.mode', |
|
50 | :value_type => 'string', |
|
50 | :value_type => 'string', |
|
51 | - :value => 'standard', |
|
51 | + :default_value => 'standard', |
|
52 | :description => 'Current modes are "standard", "contest", "indv-contest", and "analysis".' |
|
52 | :description => 'Current modes are "standard", "contest", "indv-contest", and "analysis".' |
|
53 | }, |
|
53 | }, |
|
54 |
|
54 | ||
|
55 | { |
|
55 | { |
|
56 | :key => 'contest.name', |
|
56 | :key => 'contest.name', |
|
57 | :value_type => 'string', |
|
57 | :value_type => 'string', |
|
58 | - :value => 'Grader', |
|
58 | + :default_value => 'Grader', |
|
59 | :description => 'This name will be shown on the user header bar.' |
|
59 | :description => 'This name will be shown on the user header bar.' |
|
60 | }, |
|
60 | }, |
|
61 |
|
61 | ||
|
62 | { |
|
62 | { |
|
63 | :key => 'contest.multisites', |
|
63 | :key => 'contest.multisites', |
|
64 | :value_type => 'boolean', |
|
64 | :value_type => 'boolean', |
|
65 | - :value => 'false', |
|
65 | + :default_value => 'false', |
|
66 | :description => 'If the server is in contest mode and this option is true, on the log in of the admin a menu for site selections is shown.' |
|
66 | :description => 'If the server is in contest mode and this option is true, on the log in of the admin a menu for site selections is shown.' |
|
67 | }, |
|
67 | }, |
|
68 |
|
68 | ||
|
69 | { |
|
69 | { |
|
70 | :key => 'system.online_registration', |
|
70 | :key => 'system.online_registration', |
|
71 | :value_type => 'boolean', |
|
71 | :value_type => 'boolean', |
|
72 | - :value => 'false', |
|
72 | + :default_value => 'false', |
|
73 | :description => 'This option enables online registration.' |
|
73 | :description => 'This option enables online registration.' |
|
74 | }, |
|
74 | }, |
|
75 |
|
75 | ||
|
76 | # If Configuration['system.online_registration'] is true, the |
|
76 | # If Configuration['system.online_registration'] is true, the |
|
77 | # system allows online registration, and will use these |
|
77 | # system allows online registration, and will use these |
|
78 | # information for sending confirmation emails. |
|
78 | # information for sending confirmation emails. |
|
79 | { |
|
79 | { |
|
80 | :key => 'system.online_registration.smtp', |
|
80 | :key => 'system.online_registration.smtp', |
|
81 | :value_type => 'string', |
|
81 | :value_type => 'string', |
|
82 | - :value => 'smtp.somehost.com' |
|
82 | + :default_value => 'smtp.somehost.com' |
|
83 | }, |
|
83 | }, |
|
84 |
|
84 | ||
|
85 | { |
|
85 | { |
|
86 | :key => 'system.online_registration.from', |
|
86 | :key => 'system.online_registration.from', |
|
87 | :value_type => 'string', |
|
87 | :value_type => 'string', |
|
88 | - :value => 'your.email@address' |
|
88 | + :default_value => 'your.email@address' |
|
89 | }, |
|
89 | }, |
|
90 |
|
90 | ||
|
91 | { |
|
91 | { |
|
92 | :key => 'system.admin_email', |
|
92 | :key => 'system.admin_email', |
|
93 | :value_type => 'string', |
|
93 | :value_type => 'string', |
|
94 | - :value => 'admin@admin.email' |
|
94 | + :default_value => 'admin@admin.email' |
|
95 | }, |
|
95 | }, |
|
96 |
|
96 | ||
|
97 | { |
|
97 | { |
|
98 | :key => 'system.user_setting_enabled', |
|
98 | :key => 'system.user_setting_enabled', |
|
99 | :value_type => 'boolean', |
|
99 | :value_type => 'boolean', |
|
100 | - :value => 'true', |
|
100 | + :default_value => 'true', |
|
101 | :description => 'If this option is true, users can change their settings' |
|
101 | :description => 'If this option is true, users can change their settings' |
|
102 | }, |
|
102 | }, |
|
103 |
|
103 | ||
|
104 | # If Configuration['contest.test_request.early_timeout'] is true |
|
104 | # If Configuration['contest.test_request.early_timeout'] is true |
|
105 | # the user will not be able to use test request at 30 minutes |
|
105 | # the user will not be able to use test request at 30 minutes |
|
106 | # before the contest ends. |
|
106 | # before the contest ends. |
|
107 | { |
|
107 | { |
|
108 | :key => 'contest.test_request.early_timeout', |
|
108 | :key => 'contest.test_request.early_timeout', |
|
109 | :value_type => 'boolean', |
|
109 | :value_type => 'boolean', |
|
110 | - :value => 'false' |
|
110 | + :default_value => 'false' |
|
111 | } |
|
111 | } |
|
112 | ] |
|
112 | ] |
|
113 |
|
113 | ||
|
114 | CONFIGURATIONS.each do |conf| |
|
114 | CONFIGURATIONS.each do |conf| |
|
115 | if conf.has_key? :description |
|
115 | if conf.has_key? :description |
|
116 | desc = conf[:description] |
|
116 | desc = conf[:description] |
You need to be logged in to leave comments.
Login now