|
Integrate user strings into the JSON policy template file
The new concept is the following: policy_templates.json contains all the data necessary to generate templates: policy names, English captions, descriptions, etc. This gets translated the following GRIT gatherer: policy_json.py. The text of the translated JSON file is then picked up, parsed, and passed to the writers by template_formatter.py.
BUG= 64898
TEST=PolicyJsonUnittest.*
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71421
Total comments: 16
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1943 lines, -1814 lines) |
Patch |
 |
M |
chrome/app/policy/policy_templates.grd
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -847 lines |
0 comments
|
Download
|
 |
M |
chrome/app/policy/policy_templates.json
|
View
|
1
2
3
4
5
6
7
|
36 chunks |
+743 lines, -192 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/policy_template_generator.py
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+34 lines, -41 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/policy_template_generator_unittest.py
|
View
|
1
2
3
4
5
6
7
8
9
|
9 chunks |
+194 lines, -177 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/template_formatter.py
|
View
|
1
2
|
3 chunks |
+6 lines, -29 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writer_configuration.py
|
View
|
1
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/adm_writer.py
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/adm_writer_unittest.py
|
View
|
1
2
3
4
5
6
7
|
11 chunks |
+104 lines, -90 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/adml_writer.py
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/adml_writer_unittest.py
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/admx_writer.py
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/admx_writer_unittest.py
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/doc_writer.py
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
|
tools/grit/grit/format/policy_templates/writers/doc_writer_unittest.py
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+26 lines, -28 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/json_writer.py
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/json_writer_unittest.py
|
View
|
1
2
3
4
5
6
7
|
18 chunks |
+45 lines, -59 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/plist_strings_writer.py
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/plist_strings_writer_unittest.py
|
View
|
1
2
3
4
5
6
7
|
9 chunks |
+87 lines, -63 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/plist_writer.py
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/plist_writer_unittest.py
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
7 chunks |
+42 lines, -57 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/reg_writer.py
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/reg_writer_unittest.py
|
View
|
1
2
3
4
5
6
7
|
18 chunks |
+45 lines, -59 lines |
0 comments
|
Download
|
 |
|
tools/grit/grit/format/policy_templates/writers/template_writer.py
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/template_writer_unittest.py
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/format/policy_templates/writers/writer_unittest_common.py
|
View
|
1
|
3 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/gather/muppet_strings.py
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
tools/grit/grit/gather/policy_json.py
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+263 lines, -0 lines |
0 comments
|
Download
|
 |
A |
tools/grit/grit/gather/policy_json_unittest.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+178 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/gather/regexp.py
|
View
|
1
2
|
3 chunks |
+3 lines, -106 lines |
0 comments
|
Download
|
 |
A |
tools/grit/grit/gather/skeleton_gatherer.py
|
View
|
1
2
3
4
5
6
|
1 chunk |
+127 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/node/structure.py
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tools/grit/grit/test_suite_all.py
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -18 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|