Add files using upload-large-folder tool
Browse files- FEA-Bench-v1.0-Lite-Oracle/test/state.json +1 -1
- FEA-Bench-v1.0-Lite-Standard/dataset_dict.json +1 -0
- FEA-Bench-v1.0-Lite-Standard/test/dataset_info.json +107 -0
- FEA-Bench-v1.0-Lite-Standard/test/state.json +13 -0
- FEA-Bench-v1.0-Oracle/dataset_dict.json +1 -0
- FEA-Bench-v1.0-Oracle/test/dataset_info.json +149 -0
- FEA-Bench-v1.0-Oracle/test/state.json +16 -0
- FEA-Bench-v1.0-Standard/test/state.json +1 -1
- testbed/wagtail__wagtail/.coveragerc +35 -0
- testbed/wagtail__wagtail/.editorconfig +27 -0
- testbed/wagtail__wagtail/.eslintignore +16 -0
- testbed/wagtail__wagtail/.git-blame-ignore-revs +12 -0
- testbed/wagtail__wagtail/.gitignore +31 -0
- testbed/wagtail__wagtail/.nvmrc +1 -0
- testbed/wagtail__wagtail/.pre-commit-config.yaml +57 -0
- testbed/wagtail__wagtail/.prettierignore +14 -0
- testbed/wagtail__wagtail/.readthedocs.yml +4 -0
- testbed/wagtail__wagtail/.semgrep.yml +79 -0
- testbed/wagtail__wagtail/.squash.yml +26 -0
- testbed/wagtail__wagtail/.stylelintignore +3 -0
- testbed/wagtail__wagtail/.stylelintrc.js +82 -0
- testbed/wagtail__wagtail/CHANGELOG.txt +0 -0
- testbed/wagtail__wagtail/CONTRIBUTORS.rst +744 -0
- testbed/wagtail__wagtail/LICENSE +27 -0
- testbed/wagtail__wagtail/MANIFEST.in +10 -0
- testbed/wagtail__wagtail/Makefile +56 -0
- testbed/wagtail__wagtail/README.md +145 -0
- testbed/wagtail__wagtail/SECURITY.md +7 -0
- testbed/wagtail__wagtail/SPONSORS.md +55 -0
- testbed/wagtail__wagtail/codecov.yml +14 -0
- testbed/wagtail__wagtail/conftest.py +67 -0
- testbed/wagtail__wagtail/etc/nginx.conf.sample +52 -0
- testbed/wagtail__wagtail/package-lock.json +0 -0
- testbed/wagtail__wagtail/package.json +143 -0
- testbed/wagtail__wagtail/prettier.config.js +18 -0
- testbed/wagtail__wagtail/runtests.py +102 -0
- testbed/wagtail__wagtail/setup.cfg +32 -0
- testbed/wagtail__wagtail/setup.py +138 -0
- testbed/wagtail__wagtail/tailwind.config.js +18 -0
- testbed/wagtail__wagtail/tox.ini +64 -0
- testbed/wagtail__wagtail/tsconfig.json +29 -0
- testbed/wagtail__wagtail/wagtail/core/whitelist.py +12 -0
- testbed/wagtail__wagtail/wagtail/signal_handlers.py +129 -0
- testbed/wagtail__wagtail/wagtail/views.py +57 -0
- testbed/wagtail__wagtail/wagtail/wagtail_hooks.py +516 -0
- testbed/wagtail__wagtail/wagtail/workflows.py +27 -0
FEA-Bench-v1.0-Lite-Oracle/test/state.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"filename": "data-00000-of-00001.arrow"
|
| 5 |
}
|
| 6 |
],
|
| 7 |
-
"_fingerprint": "
|
| 8 |
"_format_columns": null,
|
| 9 |
"_format_kwargs": {},
|
| 10 |
"_format_type": null,
|
|
|
|
| 4 |
"filename": "data-00000-of-00001.arrow"
|
| 5 |
}
|
| 6 |
],
|
| 7 |
+
"_fingerprint": "fb4c6be08611ca54",
|
| 8 |
"_format_columns": null,
|
| 9 |
"_format_kwargs": {},
|
| 10 |
"_format_type": null,
|
FEA-Bench-v1.0-Lite-Standard/dataset_dict.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"splits": ["test"]}
|
FEA-Bench-v1.0-Lite-Standard/test/dataset_info.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"instance_id": {
|
| 6 |
+
"dtype": "string",
|
| 7 |
+
"_type": "Value"
|
| 8 |
+
},
|
| 9 |
+
"pull_number": {
|
| 10 |
+
"dtype": "int64",
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
},
|
| 13 |
+
"repo": {
|
| 14 |
+
"dtype": "string",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"version": {
|
| 18 |
+
"dtype": "string",
|
| 19 |
+
"_type": "Value"
|
| 20 |
+
},
|
| 21 |
+
"base_commit": {
|
| 22 |
+
"dtype": "string",
|
| 23 |
+
"_type": "Value"
|
| 24 |
+
},
|
| 25 |
+
"created_at": {
|
| 26 |
+
"dtype": "string",
|
| 27 |
+
"_type": "Value"
|
| 28 |
+
},
|
| 29 |
+
"patch": {
|
| 30 |
+
"dtype": "string",
|
| 31 |
+
"_type": "Value"
|
| 32 |
+
},
|
| 33 |
+
"test_patch": {
|
| 34 |
+
"dtype": "string",
|
| 35 |
+
"_type": "Value"
|
| 36 |
+
},
|
| 37 |
+
"non_py_patch": {
|
| 38 |
+
"dtype": "string",
|
| 39 |
+
"_type": "Value"
|
| 40 |
+
},
|
| 41 |
+
"new_components": {
|
| 42 |
+
"feature": {
|
| 43 |
+
"components": {
|
| 44 |
+
"feature": {
|
| 45 |
+
"doc": {
|
| 46 |
+
"dtype": "string",
|
| 47 |
+
"_type": "Value"
|
| 48 |
+
},
|
| 49 |
+
"lines": {
|
| 50 |
+
"feature": {
|
| 51 |
+
"dtype": "int64",
|
| 52 |
+
"_type": "Value"
|
| 53 |
+
},
|
| 54 |
+
"_type": "List"
|
| 55 |
+
},
|
| 56 |
+
"name": {
|
| 57 |
+
"dtype": "string",
|
| 58 |
+
"_type": "Value"
|
| 59 |
+
},
|
| 60 |
+
"signature": {
|
| 61 |
+
"dtype": "string",
|
| 62 |
+
"_type": "Value"
|
| 63 |
+
},
|
| 64 |
+
"type": {
|
| 65 |
+
"dtype": "string",
|
| 66 |
+
"_type": "Value"
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"_type": "List"
|
| 70 |
+
},
|
| 71 |
+
"file": {
|
| 72 |
+
"dtype": "string",
|
| 73 |
+
"_type": "Value"
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
"_type": "List"
|
| 77 |
+
},
|
| 78 |
+
"FAIL_TO_PASS": {
|
| 79 |
+
"feature": {
|
| 80 |
+
"dtype": "string",
|
| 81 |
+
"_type": "Value"
|
| 82 |
+
},
|
| 83 |
+
"_type": "List"
|
| 84 |
+
},
|
| 85 |
+
"PASS_TO_PASS": {
|
| 86 |
+
"feature": {
|
| 87 |
+
"dtype": "string",
|
| 88 |
+
"_type": "Value"
|
| 89 |
+
},
|
| 90 |
+
"_type": "List"
|
| 91 |
+
},
|
| 92 |
+
"problem_statement": {
|
| 93 |
+
"dtype": "string",
|
| 94 |
+
"_type": "Value"
|
| 95 |
+
},
|
| 96 |
+
"hints_text": {
|
| 97 |
+
"dtype": "string",
|
| 98 |
+
"_type": "Value"
|
| 99 |
+
},
|
| 100 |
+
"environment_setup_commit": {
|
| 101 |
+
"dtype": "string",
|
| 102 |
+
"_type": "Value"
|
| 103 |
+
}
|
| 104 |
+
},
|
| 105 |
+
"homepage": "",
|
| 106 |
+
"license": ""
|
| 107 |
+
}
|
FEA-Bench-v1.0-Lite-Standard/test/state.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00001.arrow"
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
"_fingerprint": "3a4b60aed5affdd1",
|
| 8 |
+
"_format_columns": null,
|
| 9 |
+
"_format_kwargs": {},
|
| 10 |
+
"_format_type": null,
|
| 11 |
+
"_output_all_columns": false,
|
| 12 |
+
"_split": null
|
| 13 |
+
}
|
FEA-Bench-v1.0-Oracle/dataset_dict.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"splits": ["test"]}
|
FEA-Bench-v1.0-Oracle/test/dataset_info.json
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"citation": "",
|
| 3 |
+
"description": "",
|
| 4 |
+
"features": {
|
| 5 |
+
"instance_id": {
|
| 6 |
+
"dtype": "string",
|
| 7 |
+
"_type": "Value"
|
| 8 |
+
},
|
| 9 |
+
"pull_number": {
|
| 10 |
+
"dtype": "int64",
|
| 11 |
+
"_type": "Value"
|
| 12 |
+
},
|
| 13 |
+
"repo": {
|
| 14 |
+
"dtype": "string",
|
| 15 |
+
"_type": "Value"
|
| 16 |
+
},
|
| 17 |
+
"version": {
|
| 18 |
+
"dtype": "string",
|
| 19 |
+
"_type": "Value"
|
| 20 |
+
},
|
| 21 |
+
"base_commit": {
|
| 22 |
+
"dtype": "string",
|
| 23 |
+
"_type": "Value"
|
| 24 |
+
},
|
| 25 |
+
"created_at": {
|
| 26 |
+
"dtype": "string",
|
| 27 |
+
"_type": "Value"
|
| 28 |
+
},
|
| 29 |
+
"patch": {
|
| 30 |
+
"dtype": "string",
|
| 31 |
+
"_type": "Value"
|
| 32 |
+
},
|
| 33 |
+
"test_patch": {
|
| 34 |
+
"dtype": "string",
|
| 35 |
+
"_type": "Value"
|
| 36 |
+
},
|
| 37 |
+
"non_py_patch": {
|
| 38 |
+
"dtype": "string",
|
| 39 |
+
"_type": "Value"
|
| 40 |
+
},
|
| 41 |
+
"new_components": {
|
| 42 |
+
"feature": {
|
| 43 |
+
"components": {
|
| 44 |
+
"feature": {
|
| 45 |
+
"doc": {
|
| 46 |
+
"dtype": "string",
|
| 47 |
+
"_type": "Value"
|
| 48 |
+
},
|
| 49 |
+
"lines": {
|
| 50 |
+
"feature": {
|
| 51 |
+
"dtype": "int64",
|
| 52 |
+
"_type": "Value"
|
| 53 |
+
},
|
| 54 |
+
"_type": "List"
|
| 55 |
+
},
|
| 56 |
+
"name": {
|
| 57 |
+
"dtype": "string",
|
| 58 |
+
"_type": "Value"
|
| 59 |
+
},
|
| 60 |
+
"signature": {
|
| 61 |
+
"dtype": "string",
|
| 62 |
+
"_type": "Value"
|
| 63 |
+
},
|
| 64 |
+
"type": {
|
| 65 |
+
"dtype": "string",
|
| 66 |
+
"_type": "Value"
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"_type": "List"
|
| 70 |
+
},
|
| 71 |
+
"file": {
|
| 72 |
+
"dtype": "string",
|
| 73 |
+
"_type": "Value"
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
"_type": "List"
|
| 77 |
+
},
|
| 78 |
+
"FAIL_TO_PASS": {
|
| 79 |
+
"feature": {
|
| 80 |
+
"dtype": "string",
|
| 81 |
+
"_type": "Value"
|
| 82 |
+
},
|
| 83 |
+
"_type": "List"
|
| 84 |
+
},
|
| 85 |
+
"PASS_TO_PASS": {
|
| 86 |
+
"feature": {
|
| 87 |
+
"dtype": "string",
|
| 88 |
+
"_type": "Value"
|
| 89 |
+
},
|
| 90 |
+
"_type": "List"
|
| 91 |
+
},
|
| 92 |
+
"pull_request_text": {
|
| 93 |
+
"dtype": "string",
|
| 94 |
+
"_type": "Value"
|
| 95 |
+
},
|
| 96 |
+
"issue_text": {
|
| 97 |
+
"dtype": "string",
|
| 98 |
+
"_type": "Value"
|
| 99 |
+
},
|
| 100 |
+
"readmes": {
|
| 101 |
+
"feature": {
|
| 102 |
+
"content": {
|
| 103 |
+
"dtype": "string",
|
| 104 |
+
"_type": "Value"
|
| 105 |
+
},
|
| 106 |
+
"file": {
|
| 107 |
+
"dtype": "string",
|
| 108 |
+
"_type": "Value"
|
| 109 |
+
}
|
| 110 |
+
},
|
| 111 |
+
"_type": "List"
|
| 112 |
+
},
|
| 113 |
+
"files": {
|
| 114 |
+
"feature": {
|
| 115 |
+
"content": {
|
| 116 |
+
"dtype": "string",
|
| 117 |
+
"_type": "Value"
|
| 118 |
+
},
|
| 119 |
+
"file": {
|
| 120 |
+
"dtype": "string",
|
| 121 |
+
"_type": "Value"
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
"_type": "List"
|
| 125 |
+
},
|
| 126 |
+
"environment_setup_commit": {
|
| 127 |
+
"dtype": "string",
|
| 128 |
+
"_type": "Value"
|
| 129 |
+
},
|
| 130 |
+
"patch-detailed": {
|
| 131 |
+
"dtype": "string",
|
| 132 |
+
"_type": "Value"
|
| 133 |
+
},
|
| 134 |
+
"natural-detailed": {
|
| 135 |
+
"dtype": "string",
|
| 136 |
+
"_type": "Value"
|
| 137 |
+
},
|
| 138 |
+
"patch-brief": {
|
| 139 |
+
"dtype": "string",
|
| 140 |
+
"_type": "Value"
|
| 141 |
+
},
|
| 142 |
+
"natural-brief": {
|
| 143 |
+
"dtype": "string",
|
| 144 |
+
"_type": "Value"
|
| 145 |
+
}
|
| 146 |
+
},
|
| 147 |
+
"homepage": "",
|
| 148 |
+
"license": ""
|
| 149 |
+
}
|
FEA-Bench-v1.0-Oracle/test/state.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_data_files": [
|
| 3 |
+
{
|
| 4 |
+
"filename": "data-00000-of-00002.arrow"
|
| 5 |
+
},
|
| 6 |
+
{
|
| 7 |
+
"filename": "data-00001-of-00002.arrow"
|
| 8 |
+
}
|
| 9 |
+
],
|
| 10 |
+
"_fingerprint": "e3c1a2c18ab6724f",
|
| 11 |
+
"_format_columns": null,
|
| 12 |
+
"_format_kwargs": {},
|
| 13 |
+
"_format_type": null,
|
| 14 |
+
"_output_all_columns": false,
|
| 15 |
+
"_split": null
|
| 16 |
+
}
|
FEA-Bench-v1.0-Standard/test/state.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
| 4 |
"filename": "data-00000-of-00001.arrow"
|
| 5 |
}
|
| 6 |
],
|
| 7 |
-
"_fingerprint": "
|
| 8 |
"_format_columns": null,
|
| 9 |
"_format_kwargs": {},
|
| 10 |
"_format_type": null,
|
|
|
|
| 4 |
"filename": "data-00000-of-00001.arrow"
|
| 5 |
}
|
| 6 |
],
|
| 7 |
+
"_fingerprint": "f5dbcc7284fa37a1",
|
| 8 |
"_format_columns": null,
|
| 9 |
"_format_kwargs": {},
|
| 10 |
"_format_type": null,
|
testbed/wagtail__wagtail/.coveragerc
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# .coveragerc to control coverage.py
|
| 2 |
+
[run]
|
| 3 |
+
branch = True
|
| 4 |
+
|
| 5 |
+
source = wagtail
|
| 6 |
+
|
| 7 |
+
omit =
|
| 8 |
+
*/migrations/*
|
| 9 |
+
*/tests/*
|
| 10 |
+
docs/conf.py
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
[report]
|
| 14 |
+
# Regexes for lines to exclude from consideration
|
| 15 |
+
exclude_lines =
|
| 16 |
+
# Have to re-enable the standard pragma
|
| 17 |
+
pragma: no cover
|
| 18 |
+
|
| 19 |
+
# Don't complain about missing debug-only code:
|
| 20 |
+
def __repr__
|
| 21 |
+
if self\.debug
|
| 22 |
+
|
| 23 |
+
# Don't complain if tests don't hit defensive assertion code:
|
| 24 |
+
raise AssertionError
|
| 25 |
+
raise NotImplementedError
|
| 26 |
+
return NotImplemented
|
| 27 |
+
|
| 28 |
+
# Don't complain if non-runnable code isn't run:
|
| 29 |
+
if 0:
|
| 30 |
+
if __name__ == .__main__.:
|
| 31 |
+
|
| 32 |
+
ignore_errors = True
|
| 33 |
+
|
| 34 |
+
[html]
|
| 35 |
+
directory = coverage_html_report
|
testbed/wagtail__wagtail/.editorconfig
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
root = true
|
| 2 |
+
|
| 3 |
+
[*]
|
| 4 |
+
end_of_line = lf
|
| 5 |
+
insert_final_newline = true
|
| 6 |
+
trim_trailing_whitespace = true
|
| 7 |
+
indent_style = space
|
| 8 |
+
|
| 9 |
+
[Makefile]
|
| 10 |
+
indent_style = tab
|
| 11 |
+
|
| 12 |
+
[*.py]
|
| 13 |
+
charset = utf-8
|
| 14 |
+
indent_size = 4
|
| 15 |
+
max_line_length = 88
|
| 16 |
+
|
| 17 |
+
[*.js]
|
| 18 |
+
charset = utf-8
|
| 19 |
+
|
| 20 |
+
[*.{html,rst,md}]
|
| 21 |
+
indent_size = 4
|
| 22 |
+
|
| 23 |
+
[*.{js,ts,tsx,json,yml,yaml,css,scss}]
|
| 24 |
+
indent_size = 2
|
| 25 |
+
|
| 26 |
+
[*.md]
|
| 27 |
+
trim_trailing_whitespace = false
|
testbed/wagtail__wagtail/.eslintignore
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
node_modules
|
| 2 |
+
*.min.js
|
| 3 |
+
**/lib/
|
| 4 |
+
public/
|
| 5 |
+
coverage/
|
| 6 |
+
**/vendor/
|
| 7 |
+
docs/_build
|
| 8 |
+
wagtail/admin/static
|
| 9 |
+
wagtail/documents/static
|
| 10 |
+
wagtail/images/static
|
| 11 |
+
wagtail/embeds/static
|
| 12 |
+
wagtail/search/static
|
| 13 |
+
wagtail/snippets/static
|
| 14 |
+
wagtail/users/static
|
| 15 |
+
wagtail/contrib/*/static
|
| 16 |
+
.mypy_cache
|
testbed/wagtail__wagtail/.git-blame-ignore-revs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# git-blame ignored revisions
|
| 2 |
+
# To configure, run
|
| 3 |
+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
|
| 4 |
+
# Requires Git > 2.23
|
| 5 |
+
# See https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-fileltfilegt
|
| 6 |
+
|
| 7 |
+
# Initial Prettier reformatting (#7912)
|
| 8 |
+
af942a27e41b47e257b6cd46c01a13cd381fed04
|
| 9 |
+
# Initial djhtml reformatting (#7945)
|
| 10 |
+
01986cfa1702929352ac8b6d58ada6070da2c700
|
| 11 |
+
# Initial black reformatting (#7967)
|
| 12 |
+
d10f15e55806c6944827d801cd9c2d53f5da4186
|
testbed/wagtail__wagtail/.gitignore
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.swp
|
| 2 |
+
*.pyc
|
| 3 |
+
.DS_Store
|
| 4 |
+
/.coverage
|
| 5 |
+
/dist/
|
| 6 |
+
/build/
|
| 7 |
+
/MANIFEST
|
| 8 |
+
/wagtail.egg-info/
|
| 9 |
+
/docs/_build/
|
| 10 |
+
/.tox/
|
| 11 |
+
/.venv
|
| 12 |
+
/venv
|
| 13 |
+
node_modules
|
| 14 |
+
npm-debug.log*
|
| 15 |
+
*.idea/
|
| 16 |
+
/*.egg/
|
| 17 |
+
/.cache/
|
| 18 |
+
/.pytest_cache/
|
| 19 |
+
/storybook-static
|
| 20 |
+
|
| 21 |
+
### JetBrains
|
| 22 |
+
.idea/
|
| 23 |
+
*.iml
|
| 24 |
+
*.ipr
|
| 25 |
+
*.iws
|
| 26 |
+
coverage/
|
| 27 |
+
|
| 28 |
+
### vscode
|
| 29 |
+
.vscode
|
| 30 |
+
|
| 31 |
+
*.db
|
testbed/wagtail__wagtail/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
18
|
testbed/wagtail__wagtail/.pre-commit-config.yaml
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
default_language_version:
|
| 2 |
+
node: system
|
| 3 |
+
python: python3
|
| 4 |
+
repos:
|
| 5 |
+
- repo: https://github.com/psf/black
|
| 6 |
+
rev: 22.3.0
|
| 7 |
+
hooks:
|
| 8 |
+
- id: black
|
| 9 |
+
language_version: python3
|
| 10 |
+
args: ['--target-version', 'py37']
|
| 11 |
+
- repo: https://github.com/timothycrosley/isort
|
| 12 |
+
# isort config is in setup.cfg
|
| 13 |
+
rev: 5.6.4
|
| 14 |
+
hooks:
|
| 15 |
+
- id: isort
|
| 16 |
+
- repo: https://gitlab.com/pycqa/flake8
|
| 17 |
+
# flake8 config is in setup.cfg
|
| 18 |
+
rev: 3.8.4
|
| 19 |
+
hooks:
|
| 20 |
+
- id: flake8
|
| 21 |
+
additional_dependencies:
|
| 22 |
+
- flake8-comprehensions
|
| 23 |
+
- flake8-assertive
|
| 24 |
+
- repo: https://github.com/pre-commit/mirrors-prettier
|
| 25 |
+
rev: v2.5.1
|
| 26 |
+
hooks:
|
| 27 |
+
- id: prettier
|
| 28 |
+
types_or: [css, scss, javascript, ts, tsx, json, yaml]
|
| 29 |
+
- repo: https://github.com/pre-commit/mirrors-eslint
|
| 30 |
+
rev: v8.8.0
|
| 31 |
+
hooks:
|
| 32 |
+
- id: eslint
|
| 33 |
+
types: [file]
|
| 34 |
+
files: \.(js|ts|tsx)$
|
| 35 |
+
args: [--report-unused-disable-directives]
|
| 36 |
+
additional_dependencies:
|
| 37 |
+
- eslint@8.8.0
|
| 38 |
+
- '@typescript-eslint/eslint-plugin@5.10.1'
|
| 39 |
+
- '@typescript-eslint/parser@5.10.1'
|
| 40 |
+
- '@wagtail/eslint-config-wagtail@0.4.0'
|
| 41 |
+
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
|
| 42 |
+
rev: v14.2.0
|
| 43 |
+
hooks:
|
| 44 |
+
- id: stylelint
|
| 45 |
+
files: \.scss$
|
| 46 |
+
additional_dependencies:
|
| 47 |
+
- stylelint@14.2.0
|
| 48 |
+
- '@wagtail/stylelint-config-wagtail@0.3.2'
|
| 49 |
+
- repo: https://github.com/rtts/djhtml
|
| 50 |
+
rev: v1.4.13
|
| 51 |
+
hooks:
|
| 52 |
+
- id: djhtml
|
| 53 |
+
- repo: https://github.com/returntocorp/semgrep
|
| 54 |
+
rev: v0.117.0
|
| 55 |
+
hooks:
|
| 56 |
+
- id: semgrep
|
| 57 |
+
args: ['--config', '.semgrep.yml', '--error']
|
testbed/wagtail__wagtail/.prettierignore
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Irrelevant files ignored for performance reasons.
|
| 2 |
+
node_modules
|
| 3 |
+
*.min.js
|
| 4 |
+
**/lib/
|
| 5 |
+
public/
|
| 6 |
+
coverage/
|
| 7 |
+
**/vendor/
|
| 8 |
+
static
|
| 9 |
+
_build
|
| 10 |
+
# File types which Prettier supports but we don’t want auto-formatting.
|
| 11 |
+
*.md
|
| 12 |
+
# Files which contain incompatible syntax.
|
| 13 |
+
*.html
|
| 14 |
+
.mypy_cache
|
testbed/wagtail__wagtail/.readthedocs.yml
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python:
|
| 2 |
+
version: 3.7
|
| 3 |
+
pip_install: true
|
| 4 |
+
requirements_file: null
|
testbed/wagtail__wagtail/.semgrep.yml
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
rules:
|
| 2 |
+
- id: translation-no-new-style-formatting
|
| 3 |
+
patterns:
|
| 4 |
+
- pattern: $FUNC("$STRING_ID", ...)
|
| 5 |
+
- metavariable-regex:
|
| 6 |
+
metavariable: $FUNC
|
| 7 |
+
regex: '_|gettext|gettext_lazy|ngettext|ngettext_lazy'
|
| 8 |
+
- metavariable-regex:
|
| 9 |
+
metavariable: $STRING_ID
|
| 10 |
+
regex: ".*({(\\d*|[\\w_]*)}).*"
|
| 11 |
+
message: |
|
| 12 |
+
Do not use str.format style formatting for translations.
|
| 13 |
+
Use printf style formatting with named placeholders instead.
|
| 14 |
+
For example, do `_("Hello %(name)s") % {"name": "Wagtail"}`
|
| 15 |
+
instead of `_("Hello {name}").format(name="Wagtail")`.
|
| 16 |
+
See https://docs.wagtail.org/en/latest/contributing/translations.html#marking-strings-for-translation for more information.
|
| 17 |
+
languages: [python, javascript, typescript]
|
| 18 |
+
severity: ERROR
|
| 19 |
+
- id: translation-no-f-strings
|
| 20 |
+
patterns:
|
| 21 |
+
- pattern: $FUNC(f"...", ...)
|
| 22 |
+
- metavariable-regex:
|
| 23 |
+
metavariable: $FUNC
|
| 24 |
+
regex: '_|gettext|gettext_lazy|ngettext|ngettext_lazy'
|
| 25 |
+
message: >
|
| 26 |
+
Do not use formatted string literals for translations.
|
| 27 |
+
Use printf style formatting with named placeholders instead.
|
| 28 |
+
For example, do `_("Hello %(name)s") % {"name": "Wagtail"}`
|
| 29 |
+
instead of `_(f"Hello {name}")`.
|
| 30 |
+
See https://docs.wagtail.org/en/latest/contributing/translations.html#marking-strings-for-translation for more information.
|
| 31 |
+
languages: [python]
|
| 32 |
+
severity: ERROR
|
| 33 |
+
- id: translation-no-anonymous-arguments
|
| 34 |
+
patterns:
|
| 35 |
+
- pattern: $FUNC("$STRING_ID", ...)
|
| 36 |
+
- metavariable-regex:
|
| 37 |
+
metavariable: $FUNC
|
| 38 |
+
regex: '_|gettext|gettext_lazy|ngettext|ngettext_lazy'
|
| 39 |
+
- metavariable-regex:
|
| 40 |
+
metavariable: $STRING_ID
|
| 41 |
+
regex: ".*%\\w.*"
|
| 42 |
+
message: >
|
| 43 |
+
Do not use anonymous placeholders for translations.
|
| 44 |
+
Use printf style formatting with named placeholders instead.
|
| 45 |
+
For example, do `_("Hello %(name)s") % {"name": "Wagtail"}`
|
| 46 |
+
instead of `_("Hello %s") % "Wagtail"`.
|
| 47 |
+
See https://docs.wagtail.org/en/latest/contributing/translations.html#marking-strings-for-translation for more information.
|
| 48 |
+
languages: [python, javascript, typescript]
|
| 49 |
+
severity: ERROR
|
| 50 |
+
- id: translation-no-format-within-gettext-python
|
| 51 |
+
patterns:
|
| 52 |
+
- pattern: $FUNC("..." % ..., ...)
|
| 53 |
+
- metavariable-regex:
|
| 54 |
+
metavariable: $FUNC
|
| 55 |
+
regex: '_|gettext|gettext_lazy|ngettext|ngettext_lazy'
|
| 56 |
+
message: >
|
| 57 |
+
Do not format string before translations
|
| 58 |
+
or the interpolated value will be part of the key.
|
| 59 |
+
Instead, interpolate after the call to gettext.
|
| 60 |
+
For example, do `_("Hello %(name)s") % {"name": "Wagtail"}`
|
| 61 |
+
instead of `_("Hello %(name)s" % {"name": "Wagtail"} )`.
|
| 62 |
+
See https://docs.wagtail.org/en/latest/contributing/translations.html#marking-strings-for-translation for more information.
|
| 63 |
+
languages: [python]
|
| 64 |
+
severity: ERROR
|
| 65 |
+
- id: translation-no-format-within-gettext-javascript
|
| 66 |
+
patterns:
|
| 67 |
+
- pattern: $FUNC("...".replace(...), ...)
|
| 68 |
+
- metavariable-regex:
|
| 69 |
+
metavariable: $FUNC
|
| 70 |
+
regex: '_|gettext|gettext_lazy|ngettext|ngettext_lazy'
|
| 71 |
+
message: >
|
| 72 |
+
Do not format string before translations
|
| 73 |
+
or the interpolated value will be part of the key.
|
| 74 |
+
Instead, interpolate after the call to gettext.
|
| 75 |
+
For example, do `_("Hello %(name)s") % {"name": "Wagtail"}`
|
| 76 |
+
instead of `_("Hello %(name)s" % {"name": "Wagtail"} )`.
|
| 77 |
+
See https://docs.wagtail.org/en/latest/contributing/translations.html#marking-strings-for-translation for more information.
|
| 78 |
+
languages: [javascript, typescript]
|
| 79 |
+
severity: ERROR
|
testbed/wagtail__wagtail/.squash.yml
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
deployments:
|
| 2 |
+
default:
|
| 3 |
+
dockerimage: python:3.10.5-slim-buster
|
| 4 |
+
build_steps:
|
| 5 |
+
- apt-get update && apt-get install -y libssl-dev libpq-dev git build-essential libfontconfig1 libfontconfig1-dev curl
|
| 6 |
+
- RUN bash -c "curl -sL https://deb.nodesource.com/setup_18.x | bash -"
|
| 7 |
+
- apt install -y nodejs
|
| 8 |
+
- pip install setuptools pip --upgrade --force-reinstall
|
| 9 |
+
- cd /code
|
| 10 |
+
post_build_steps:
|
| 11 |
+
- npm ci --audit=false --progress=false
|
| 12 |
+
- npm run build
|
| 13 |
+
- pip install /code
|
| 14 |
+
- mkdir /myproject
|
| 15 |
+
- cd /myproject
|
| 16 |
+
- wagtail start mysite
|
| 17 |
+
- cd /myproject/mysite
|
| 18 |
+
- python manage.py migrate
|
| 19 |
+
- echo "<br><h1>Wagtail test instance</h1><p>Log into <a href='/admin/'>/admin/</a> with 'admin' / 'changeme'.</p>" > home/templates/home/welcome_page.html
|
| 20 |
+
- echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'admin@example.com', 'changeme')" | python manage.py shell
|
| 21 |
+
- echo "CSRF_TRUSTED_ORIGINS = ['https://*.squash.io']" >> mysite/settings/dev.py
|
| 22 |
+
launch_steps:
|
| 23 |
+
- cd /myproject/mysite
|
| 24 |
+
- python manage.py runserver 0.0.0.0:80
|
| 25 |
+
port_forwarding: 80:80
|
| 26 |
+
run_options: -v ~/code:/code
|
testbed/wagtail__wagtail/.stylelintignore
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
node_modules
|
| 2 |
+
venv
|
| 3 |
+
build
|
testbed/wagtail__wagtail/.stylelintrc.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = {
|
| 2 |
+
extends: '@wagtail/stylelint-config-wagtail',
|
| 3 |
+
rules: {
|
| 4 |
+
'scss/at-rule-no-unknown': [
|
| 5 |
+
true,
|
| 6 |
+
{
|
| 7 |
+
ignoreAtRules: [
|
| 8 |
+
'tailwind',
|
| 9 |
+
'apply',
|
| 10 |
+
'variants',
|
| 11 |
+
'responsive',
|
| 12 |
+
'screen',
|
| 13 |
+
'layer',
|
| 14 |
+
],
|
| 15 |
+
},
|
| 16 |
+
],
|
| 17 |
+
'no-invalid-position-at-import-rule': [
|
| 18 |
+
true,
|
| 19 |
+
{
|
| 20 |
+
ignoreAtRules: ['tailwind', 'use'],
|
| 21 |
+
},
|
| 22 |
+
],
|
| 23 |
+
// Would be valuable for strict BEM components but is too hard to enforce with legacy code.
|
| 24 |
+
'no-descending-specificity': null,
|
| 25 |
+
// Override stylelint-config-wagtail’s options to allow all float and clear values for now.
|
| 26 |
+
'declaration-property-value-allowed-list': {
|
| 27 |
+
// 'clear': ['both', 'none'],
|
| 28 |
+
// 'float': ['inline-start', 'inline-end', 'none', 'unset'],
|
| 29 |
+
'text-align': ['start', 'end', 'center'],
|
| 30 |
+
},
|
| 31 |
+
// Some parts of declaration-strict-value commented out until we are in a position to enforce them.
|
| 32 |
+
'scale-unlimited/declaration-strict-value': [
|
| 33 |
+
[
|
| 34 |
+
// Colors should always be defined from variables or functions.
|
| 35 |
+
'/color/',
|
| 36 |
+
'fill',
|
| 37 |
+
'stroke',
|
| 38 |
+
// Font tokens should come from our design tokens.
|
| 39 |
+
'font-family',
|
| 40 |
+
// 'font-size',
|
| 41 |
+
// 'font-weight',
|
| 42 |
+
// Spacing should use a consistent scale rather than hard-coded values.
|
| 43 |
+
// '/margin/',
|
| 44 |
+
// '/padding/',
|
| 45 |
+
// 'gap',
|
| 46 |
+
// Consistently using variables for z-index allows us to define the order of the values globally.
|
| 47 |
+
// 'z-index',
|
| 48 |
+
],
|
| 49 |
+
{
|
| 50 |
+
ignoreValues: [
|
| 51 |
+
'currentColor',
|
| 52 |
+
'inherit',
|
| 53 |
+
'initial',
|
| 54 |
+
'none',
|
| 55 |
+
'unset',
|
| 56 |
+
'transparent',
|
| 57 |
+
// System colors for forced-colors styling.
|
| 58 |
+
// See https://drafts.csswg.org/css-color-4/#css-system-colors.
|
| 59 |
+
'Canvas',
|
| 60 |
+
'CanvasText',
|
| 61 |
+
'LinkText',
|
| 62 |
+
'VisitedText',
|
| 63 |
+
'ActiveText',
|
| 64 |
+
'ButtonFace',
|
| 65 |
+
'ButtonText',
|
| 66 |
+
'ButtonBorder',
|
| 67 |
+
'Field',
|
| 68 |
+
'FieldText',
|
| 69 |
+
'Highlight',
|
| 70 |
+
'HighlightText',
|
| 71 |
+
'SelectedItem',
|
| 72 |
+
'SelectedItemText',
|
| 73 |
+
'Mark',
|
| 74 |
+
'MarkText',
|
| 75 |
+
'GrayText',
|
| 76 |
+
'AccentColor',
|
| 77 |
+
'AccentColorText',
|
| 78 |
+
],
|
| 79 |
+
},
|
| 80 |
+
],
|
| 81 |
+
},
|
| 82 |
+
};
|
testbed/wagtail__wagtail/CHANGELOG.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
testbed/wagtail__wagtail/CONTRIBUTORS.rst
ADDED
|
@@ -0,0 +1,744 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Core team
|
| 2 |
+
=========
|
| 3 |
+
|
| 4 |
+
* Andy Chosak (consumerfinance.gov)
|
| 5 |
+
* Coen van der Kamp (Four Digits)
|
| 6 |
+
* Cynthia Kiser (Caltech)
|
| 7 |
+
* Dan Braghis (Torchbox)
|
| 8 |
+
* Dawn Wages (The Wharton School)
|
| 9 |
+
* Jacob Topp-Mugglestone (Torchbox)
|
| 10 |
+
* Kalob Taulien
|
| 11 |
+
* LB Johnston
|
| 12 |
+
* Loïc Teixeira (Springload)
|
| 13 |
+
* Matthew Westcott (Torchbox)
|
| 14 |
+
* Naomi Morduch Toubman
|
| 15 |
+
* Sage Abdullah (Torchbox)
|
| 16 |
+
* Scott Cranfill (JPL)
|
| 17 |
+
* Stefan Hammer (wunderweiss)
|
| 18 |
+
* Storm Heg
|
| 19 |
+
* Thibaud Colas (Torchbox)
|
| 20 |
+
* Tim Allen (The Wharton School)
|
| 21 |
+
* Tom Dyson (Torchbox)
|
| 22 |
+
* Vince Salvino (CodeRed)
|
| 23 |
+
|
| 24 |
+
Core team alumni
|
| 25 |
+
================
|
| 26 |
+
|
| 27 |
+
* Andy Babic
|
| 28 |
+
* Bertrand Bordage
|
| 29 |
+
* Codie Roelf
|
| 30 |
+
* Emily Horsman
|
| 31 |
+
* Janneke Janssen
|
| 32 |
+
* Jonny Scholes
|
| 33 |
+
* Josh Barr
|
| 34 |
+
* Karl Hobley
|
| 35 |
+
* Lisa Adams
|
| 36 |
+
* Martin Sandström
|
| 37 |
+
* Michael van Tellingen
|
| 38 |
+
* Mikalai Radchuk
|
| 39 |
+
* Mike Dingjan
|
| 40 |
+
* Rob Moorman
|
| 41 |
+
* Tim Heap
|
| 42 |
+
* Will Barton
|
| 43 |
+
|
| 44 |
+
Contributors
|
| 45 |
+
============
|
| 46 |
+
|
| 47 |
+
* David Cranwell
|
| 48 |
+
* Helen Chapman
|
| 49 |
+
* Balazs Endresz
|
| 50 |
+
* Neal Todd
|
| 51 |
+
* Paul Hallett
|
| 52 |
+
* Serafeim Papastefanos
|
| 53 |
+
* Łukasz Bołdys
|
| 54 |
+
* peterarenot
|
| 55 |
+
* Levi Gross
|
| 56 |
+
* Delgermurun Purevkhuu
|
| 57 |
+
* Lewis Cowper
|
| 58 |
+
* Stephen Newey
|
| 59 |
+
* Ryan Foster
|
| 60 |
+
* v1kku
|
| 61 |
+
* Miguel Vieira
|
| 62 |
+
* Ben Emery
|
| 63 |
+
* David Smith
|
| 64 |
+
* Ben Margolis
|
| 65 |
+
* Tom Talbot
|
| 66 |
+
* Jeffrey Hearn
|
| 67 |
+
* Robert Clark
|
| 68 |
+
* Nathan Brizendine
|
| 69 |
+
* Gordon Pendleton
|
| 70 |
+
* John-Scott Atlakson
|
| 71 |
+
* Eric Drechsel
|
| 72 |
+
* Alejandro Giacometti
|
| 73 |
+
* Robert Rollins
|
| 74 |
+
* linibou
|
| 75 |
+
* Timo Rieber
|
| 76 |
+
* Jerel Unruh
|
| 77 |
+
* georgewhewell
|
| 78 |
+
* Frank Wiles
|
| 79 |
+
* Sebastian Spiegel
|
| 80 |
+
* Alejandro Varas
|
| 81 |
+
* Martin Sanders
|
| 82 |
+
* Benoît Bar
|
| 83 |
+
* Claudemiro
|
| 84 |
+
* Tiago Henriques
|
| 85 |
+
* Arne Schauf
|
| 86 |
+
* Jordi Joan
|
| 87 |
+
* Damian Moore
|
| 88 |
+
* signalkraft
|
| 89 |
+
* Mac Chapman
|
| 90 |
+
* Brett Grace
|
| 91 |
+
* Nar Chhantyal
|
| 92 |
+
* Michael Fillier
|
| 93 |
+
* Mitchel Cabuloy
|
| 94 |
+
* Piet Delport
|
| 95 |
+
* Tom Christie
|
| 96 |
+
* Michael van Tellingen
|
| 97 |
+
* Scot Hacker
|
| 98 |
+
* Kyungil Choi
|
| 99 |
+
* Joss Ingram
|
| 100 |
+
* Christoph Lipp
|
| 101 |
+
* Michael Cordover
|
| 102 |
+
* Timothy Allen
|
| 103 |
+
* Rob Shelton
|
| 104 |
+
* Anurag Sharma
|
| 105 |
+
* Maximilian Stauss
|
| 106 |
+
* Salvador Faria
|
| 107 |
+
* Alex Gleason
|
| 108 |
+
* Ryan Pineo
|
| 109 |
+
* Petr Vacha
|
| 110 |
+
* Sævar Öfjörð Magnússon
|
| 111 |
+
* Ashia Zawaduk
|
| 112 |
+
* Denis Voskvitsov
|
| 113 |
+
* Kyle Stratis
|
| 114 |
+
* Sergey Nikitin
|
| 115 |
+
* John Draper
|
| 116 |
+
* Rich Brennan
|
| 117 |
+
* Alex Bridge
|
| 118 |
+
* Tamriel
|
| 119 |
+
* LKozlowski
|
| 120 |
+
* Matthew Downey
|
| 121 |
+
* Maris Serzans
|
| 122 |
+
* Shu Ishida
|
| 123 |
+
* Ben Kerle
|
| 124 |
+
* Christian Peters
|
| 125 |
+
* Adon Metcalfe
|
| 126 |
+
* rayrayndwiga
|
| 127 |
+
* Rich Atkinson
|
| 128 |
+
* jnns
|
| 129 |
+
* Eugene MechanisM
|
| 130 |
+
* Benjamin Bach
|
| 131 |
+
* Alexander Bogushov
|
| 132 |
+
* Aarni Koskela
|
| 133 |
+
* alexpilot11
|
| 134 |
+
* Peter Quade
|
| 135 |
+
* Josh Hurd
|
| 136 |
+
* Matt Fozard
|
| 137 |
+
* Chris Rogers
|
| 138 |
+
* Josh Schneier
|
| 139 |
+
* Charlie Choiniere
|
| 140 |
+
* Nigel Fletton
|
| 141 |
+
* Kait Crawford
|
| 142 |
+
* Adam Bolfik
|
| 143 |
+
* Thomas Winter
|
| 144 |
+
* Gareth Price
|
| 145 |
+
* Liam Brenner
|
| 146 |
+
* Nicolas Kuttler
|
| 147 |
+
* Juha Kujala
|
| 148 |
+
* Eirik Krogstad
|
| 149 |
+
* Rob Moorman
|
| 150 |
+
* Matthijs Melissen
|
| 151 |
+
* Jonas Lergell
|
| 152 |
+
* Danielle Madeley
|
| 153 |
+
* Roel Bruggink
|
| 154 |
+
* Yannick Chabbert
|
| 155 |
+
* Tomas Olander
|
| 156 |
+
* Andrew Tork Baker
|
| 157 |
+
* Vincent Audebert
|
| 158 |
+
* Jack Paine
|
| 159 |
+
* Nick Smith
|
| 160 |
+
* João Luiz Lorencetti
|
| 161 |
+
* Jason Morrison
|
| 162 |
+
* Mario César
|
| 163 |
+
* Moritz Pfeiffer
|
| 164 |
+
* David Seddon
|
| 165 |
+
* Brad Busenius
|
| 166 |
+
* Juha Yrjölä
|
| 167 |
+
* Bojan Mihelac
|
| 168 |
+
* Robert Moggach
|
| 169 |
+
* Stephen Rice
|
| 170 |
+
* Behzad Nategh
|
| 171 |
+
* Yann Fouillat (Gagaro)
|
| 172 |
+
* Richard McMillan
|
| 173 |
+
* Johannes Spielmann
|
| 174 |
+
* Franklin Kingma
|
| 175 |
+
* Ludolf Takens
|
| 176 |
+
* Oktay Altay
|
| 177 |
+
* Paul J Stevens
|
| 178 |
+
* kakulukia
|
| 179 |
+
* Raphael Stolt
|
| 180 |
+
* Tim Graham
|
| 181 |
+
* Tobias Schmidt
|
| 182 |
+
* Chris Darko
|
| 183 |
+
* Aymeric Augustin
|
| 184 |
+
* Adriaan Tijsseling
|
| 185 |
+
* sebworks
|
| 186 |
+
* Sean Muck
|
| 187 |
+
* Fábio Macêdo Mendes
|
| 188 |
+
* Eraldo Energy
|
| 189 |
+
* Jesse Legg
|
| 190 |
+
* Tim Leguijt
|
| 191 |
+
* Luiz Boaretto
|
| 192 |
+
* Jonathon Moore
|
| 193 |
+
* Kees Hink
|
| 194 |
+
* Jayden Smith
|
| 195 |
+
* emg36
|
| 196 |
+
* Stein Strindhaug
|
| 197 |
+
* Žan Anderle
|
| 198 |
+
* Mattias Loverot
|
| 199 |
+
* Ricky Robinett
|
| 200 |
+
* Axel Haustant
|
| 201 |
+
* Henk-Jan van Hasselaar
|
| 202 |
+
* alexfromvl
|
| 203 |
+
* Jaap Roes
|
| 204 |
+
* Ducky
|
| 205 |
+
* Shawn Makinson
|
| 206 |
+
* Tom Miller
|
| 207 |
+
* Luca Perico
|
| 208 |
+
* Gary Krige
|
| 209 |
+
* Hammy Goonan
|
| 210 |
+
* Thejaswi Puthraya
|
| 211 |
+
* Benoît Vogel
|
| 212 |
+
* Manuel E. Gutierrez
|
| 213 |
+
* Albert O'Connor
|
| 214 |
+
* Morgan Aubert
|
| 215 |
+
* Diederik van der Boor
|
| 216 |
+
* Sean Hoefler
|
| 217 |
+
* Edd Baldry
|
| 218 |
+
* PyMan Claudio Marinozzi
|
| 219 |
+
* Jeffrey Chau
|
| 220 |
+
* Craig Loftus
|
| 221 |
+
* MattRijk
|
| 222 |
+
* Marco Fucci
|
| 223 |
+
* Mihail Russu
|
| 224 |
+
* Robert Slotboom
|
| 225 |
+
* Erick M'bwana
|
| 226 |
+
* Andreas Nüßlein
|
| 227 |
+
* John Heasly
|
| 228 |
+
* Nikolai Røed Kristiansen
|
| 229 |
+
* Alex Zagorodniuk
|
| 230 |
+
* glassresistor
|
| 231 |
+
* Mikael Svensson
|
| 232 |
+
* Peter Baumgartner
|
| 233 |
+
* Matheus Bratfisch
|
| 234 |
+
* Kevin Whinnery
|
| 235 |
+
* Martey Dodoo
|
| 236 |
+
* David Ray
|
| 237 |
+
* Alasdair Nicol
|
| 238 |
+
* Tobias McNulty
|
| 239 |
+
* Vorlif
|
| 240 |
+
* Kjartan Sverrisson
|
| 241 |
+
* Christine Ho
|
| 242 |
+
* Trent Holliday
|
| 243 |
+
* jacoor
|
| 244 |
+
* hdnpl
|
| 245 |
+
* Tom Hendrikx
|
| 246 |
+
* Ralph Jacobs
|
| 247 |
+
* Wietze Helmantel
|
| 248 |
+
* Patrick Gerken
|
| 249 |
+
* Will Giddens
|
| 250 |
+
* Maarten Kling
|
| 251 |
+
* Huub Bouma
|
| 252 |
+
* Thijs Kramer
|
| 253 |
+
* Ramon de Jezus
|
| 254 |
+
* Ross Curzon-Butler
|
| 255 |
+
* Daniel Chimeno
|
| 256 |
+
* Medhat Assaad
|
| 257 |
+
* Sebastian Bauer
|
| 258 |
+
* Martin Hill
|
| 259 |
+
* Maurice Bartnig
|
| 260 |
+
* Eirikur Ingi Magnusson
|
| 261 |
+
* Harris Lapiroff
|
| 262 |
+
* Hugo van den Berg
|
| 263 |
+
* Olly Willans
|
| 264 |
+
* Ben Enright
|
| 265 |
+
* Alice Rose
|
| 266 |
+
* John Franey
|
| 267 |
+
* Marc Tudurí
|
| 268 |
+
* Lucas Moeskops
|
| 269 |
+
* Rob van der Linde
|
| 270 |
+
* Paul Kamp
|
| 271 |
+
* David Wasylciw
|
| 272 |
+
* Eugene Morozov
|
| 273 |
+
* Levi Adler
|
| 274 |
+
* Edwar Baron
|
| 275 |
+
* Tomasz Knapik
|
| 276 |
+
* Venelin Stoykov
|
| 277 |
+
* Emily Horsman
|
| 278 |
+
* jcronyn
|
| 279 |
+
* Ben Sturmfels
|
| 280 |
+
* Anselm Bradford
|
| 281 |
+
* Mads Jensen
|
| 282 |
+
* Samir Shah
|
| 283 |
+
* Patrick Woods
|
| 284 |
+
* Ross Crawford-d'Heureuse
|
| 285 |
+
* rifuso
|
| 286 |
+
* Jon Carmack
|
| 287 |
+
* Martin Sandström
|
| 288 |
+
* Adrian Turjak
|
| 289 |
+
* Michael Palmer
|
| 290 |
+
* Philipp Bosch
|
| 291 |
+
* misraX
|
| 292 |
+
* Bruno Alla
|
| 293 |
+
* Christopher Bledsoe (The Motley Fool)
|
| 294 |
+
* Florent Osmont
|
| 295 |
+
* J Rob Gant
|
| 296 |
+
* Mary Kate Fain
|
| 297 |
+
* Dário Marcelino
|
| 298 |
+
* Dave Bell
|
| 299 |
+
* Ben Weatherman
|
| 300 |
+
* Carlo Ascani
|
| 301 |
+
* Julian Gallo
|
| 302 |
+
* Dan Dietz
|
| 303 |
+
* Michael Harrison
|
| 304 |
+
* Todd Dembrey
|
| 305 |
+
* Sebastian Brestin
|
| 306 |
+
* Casper Timmers
|
| 307 |
+
* Kevin Chung
|
| 308 |
+
* Kim Chee Leong
|
| 309 |
+
* Dan Swain
|
| 310 |
+
* Alexs Mathilda
|
| 311 |
+
* Tony Yates
|
| 312 |
+
* Pomax
|
| 313 |
+
* Arthur Holzner
|
| 314 |
+
* Alejandro Garza
|
| 315 |
+
* Rajeev J Sebastian
|
| 316 |
+
* Sander Tuit
|
| 317 |
+
* Tim Kamanin
|
| 318 |
+
* Sergey Fedoseev
|
| 319 |
+
* Harm Zeinstra
|
| 320 |
+
* David Moore
|
| 321 |
+
* Pierre Geier
|
| 322 |
+
* Jérôme Lebleu
|
| 323 |
+
* Victor Miti
|
| 324 |
+
* Andrew Plummer
|
| 325 |
+
* Dmitry Vasilev
|
| 326 |
+
* Benjamin Thurm
|
| 327 |
+
* Ed Henderson
|
| 328 |
+
* Strother Scott
|
| 329 |
+
* Daniele Procida
|
| 330 |
+
* Catherine Farman
|
| 331 |
+
* Abdulmalik Abdulwahab
|
| 332 |
+
* Andrew Crewdson
|
| 333 |
+
* Aram Dulyan
|
| 334 |
+
* Kevin Howbrook
|
| 335 |
+
* Ryan Verner
|
| 336 |
+
* Oliver Wilkerson
|
| 337 |
+
* Matthew Schinckel
|
| 338 |
+
* Michael Borisov
|
| 339 |
+
* Dan Braghis
|
| 340 |
+
* Ben Dickinson
|
| 341 |
+
* Meteor0id
|
| 342 |
+
* Naa Marteki Reed
|
| 343 |
+
* Jorge Barata
|
| 344 |
+
* Brady Moe
|
| 345 |
+
* Yi Huang
|
| 346 |
+
* Stas Rudakou
|
| 347 |
+
* Abdulaziz Alfuhigi
|
| 348 |
+
* Dzianis Sheka
|
| 349 |
+
* Scott Cranfill
|
| 350 |
+
* gmmoraes
|
| 351 |
+
* Justin Focus
|
| 352 |
+
* Fedor Selitsky
|
| 353 |
+
* Seb Brown
|
| 354 |
+
* Noah B Johnson
|
| 355 |
+
* Hillary Jeffrey
|
| 356 |
+
* Nick Travis
|
| 357 |
+
* Maylon Pedroso
|
| 358 |
+
* Thijs Walcarius
|
| 359 |
+
* mukesh5
|
| 360 |
+
* frmdstryr
|
| 361 |
+
* Aidarbek Suleimenov
|
| 362 |
+
* Matthew Linares
|
| 363 |
+
* Asanka Lihiniyagoda
|
| 364 |
+
* David Beitey
|
| 365 |
+
* Paul Vetch
|
| 366 |
+
* Vladimir Knobel
|
| 367 |
+
* Matt Collins
|
| 368 |
+
* Thomas Elliott
|
| 369 |
+
* damianosSemmle
|
| 370 |
+
* Evan Winter
|
| 371 |
+
* Neil Lyons
|
| 372 |
+
* Gassan Gousseinov
|
| 373 |
+
* Thomas Kremmel
|
| 374 |
+
* patta42
|
| 375 |
+
* Esper Kuijs
|
| 376 |
+
* Damian Grinwis
|
| 377 |
+
* Wesley van Lee
|
| 378 |
+
* Md Arifin Ibne Matin
|
| 379 |
+
* Tom Usher
|
| 380 |
+
* Haydn Greatnews
|
| 381 |
+
* Katie Locke
|
| 382 |
+
* Cassidy Brooke
|
| 383 |
+
* dthompson86
|
| 384 |
+
* Jason Dilworth
|
| 385 |
+
* Deniz Dogan
|
| 386 |
+
* Po-Chuan Hsieh
|
| 387 |
+
* scil
|
| 388 |
+
* Mike Hearn
|
| 389 |
+
* Samuel Mendes
|
| 390 |
+
* Adam Eikman
|
| 391 |
+
* Andreas Bernacca
|
| 392 |
+
* Alex Tomkins
|
| 393 |
+
* Beth Menzies
|
| 394 |
+
* Michael Bunsen
|
| 395 |
+
* Dillen Meijboom
|
| 396 |
+
* George Hickman
|
| 397 |
+
* Eric Dyken
|
| 398 |
+
* Jordan Bauer
|
| 399 |
+
* Fidel Ramos
|
| 400 |
+
* Quadric
|
| 401 |
+
* jonny5532
|
| 402 |
+
* William Blackie
|
| 403 |
+
* Andrew Miller
|
| 404 |
+
* Rodrigo
|
| 405 |
+
* Iman Syed
|
| 406 |
+
* John Carter
|
| 407 |
+
* Jonathan Liuti
|
| 408 |
+
* Rahmi Pruitt
|
| 409 |
+
* Sanyam Khurana
|
| 410 |
+
* Pavel Denisov
|
| 411 |
+
* Mikael Engström
|
| 412 |
+
* Zac Connelly
|
| 413 |
+
* Sarath Kumar Somana
|
| 414 |
+
* Dani Hodovic
|
| 415 |
+
* Janne Alatalo
|
| 416 |
+
* Colin Klein
|
| 417 |
+
* Eduard Luca
|
| 418 |
+
* Kiril Staikov
|
| 419 |
+
* Saptak Sengupta
|
| 420 |
+
* Dawid Bugajewski
|
| 421 |
+
* Brian Whitton
|
| 422 |
+
* Tim White
|
| 423 |
+
* Mike Janger
|
| 424 |
+
* Prithvi MK
|
| 425 |
+
* pySilver
|
| 426 |
+
* a-mere-peasant
|
| 427 |
+
* David T Thompson
|
| 428 |
+
* kailwallin
|
| 429 |
+
* ryanomor
|
| 430 |
+
* Thijs Baaijen
|
| 431 |
+
* Stefani Castellanos
|
| 432 |
+
* Aliosha Padovani
|
| 433 |
+
* Tom Readings
|
| 434 |
+
* Andrey Smirnov
|
| 435 |
+
* Tim Gates
|
| 436 |
+
* Timothy Bautista
|
| 437 |
+
* Pete Andrew
|
| 438 |
+
* Benedikt Willi
|
| 439 |
+
* Johannes Vogel
|
| 440 |
+
* Sam Costigan
|
| 441 |
+
* Eric Sherman
|
| 442 |
+
* Martin Coote
|
| 443 |
+
* Simon Evans
|
| 444 |
+
* Arkadiusz Michał Ryś
|
| 445 |
+
* James O'Toole
|
| 446 |
+
* Storm Heg
|
| 447 |
+
* Daniel (aritas1)
|
| 448 |
+
* timmysmalls
|
| 449 |
+
* dtwm
|
| 450 |
+
* Steve Lyall
|
| 451 |
+
* Lars van de Kerkhof
|
| 452 |
+
* pimarc
|
| 453 |
+
* minusf
|
| 454 |
+
* Paulo Alvarado
|
| 455 |
+
* Karran Besen
|
| 456 |
+
* Mohamed Feddad
|
| 457 |
+
* Michał (Quadric) Sieradzki
|
| 458 |
+
* Vlad Gerasimenko
|
| 459 |
+
* Tomonori Tanabe
|
| 460 |
+
* Jannik Wempe
|
| 461 |
+
* Sylvain Fankhauser
|
| 462 |
+
* Ascani Carlo
|
| 463 |
+
* Chris Ranjana
|
| 464 |
+
* Tomas Walch
|
| 465 |
+
* François Poulain
|
| 466 |
+
* Jim Jazwiecki
|
| 467 |
+
* Kim LaRocca
|
| 468 |
+
* Jonatas Baldin
|
| 469 |
+
* Rick van Hattem
|
| 470 |
+
* Luke Hardwick
|
| 471 |
+
* Saeed Tahmasebi
|
| 472 |
+
* Liam Mullens
|
| 473 |
+
* Caitlin White
|
| 474 |
+
* Brylie Christopher Oxley
|
| 475 |
+
* Lacey Williams Henschel
|
| 476 |
+
* Dan Bentley
|
| 477 |
+
* GTpyro
|
| 478 |
+
* Yngve Høiseth
|
| 479 |
+
* Andrew Bunker
|
| 480 |
+
* Nikolay Lukyanov (mozgsml)
|
| 481 |
+
* Jean Zombie
|
| 482 |
+
* Pascal Widdershoven
|
| 483 |
+
* Max Gabrielsson
|
| 484 |
+
* Steven Wood
|
| 485 |
+
* Gabriel Peracio
|
| 486 |
+
* Jesse Menn
|
| 487 |
+
* Robbie Mackay
|
| 488 |
+
* Vyacheslav Matyukhin
|
| 489 |
+
* Vince Salvino
|
| 490 |
+
* Dino Perovic
|
| 491 |
+
* Ameet Virdee
|
| 492 |
+
* Anton Zhyltsou (@samgans)
|
| 493 |
+
* Meghana Bhange
|
| 494 |
+
* Cole Maclean
|
| 495 |
+
* Noah H
|
| 496 |
+
* David Bramwell
|
| 497 |
+
* Naglis Jonaitis
|
| 498 |
+
* Luis Nell
|
| 499 |
+
* Alex Sa
|
| 500 |
+
* Andreas Morgenstern
|
| 501 |
+
* Kristin Riebe
|
| 502 |
+
* Vadim Karpenko
|
| 503 |
+
* Bohreromir
|
| 504 |
+
* Fernando Cordeiro
|
| 505 |
+
* Matthias Rohmer
|
| 506 |
+
* Joshua Marantz
|
| 507 |
+
* Mike Brown
|
| 508 |
+
* Helder Correia
|
| 509 |
+
* James Gutu
|
| 510 |
+
* John Esther
|
| 511 |
+
* Lara Thompson
|
| 512 |
+
* Tibor Leupold
|
| 513 |
+
* Joan Eliot
|
| 514 |
+
* Sagar Agarwal
|
| 515 |
+
* Susan Dreher
|
| 516 |
+
* Dale Evans
|
| 517 |
+
* Vlad Podgurschi
|
| 518 |
+
* Kevin Breen
|
| 519 |
+
* Ihor Marhitych
|
| 520 |
+
* Andre Fonseca
|
| 521 |
+
* Tidiane Dia
|
| 522 |
+
* Jan Seifert
|
| 523 |
+
* hardcodd
|
| 524 |
+
* Chris Pollard
|
| 525 |
+
* Godswill Melford
|
| 526 |
+
* Jake Howard
|
| 527 |
+
* Petr Dlouhý
|
| 528 |
+
* Andrew Stone
|
| 529 |
+
* Daniel Fairhead
|
| 530 |
+
* Kevin Gutiérrez
|
| 531 |
+
* Brandon Murch
|
| 532 |
+
* Sean Kelly
|
| 533 |
+
* Himesh Samarasekera
|
| 534 |
+
* Jannis Vajen
|
| 535 |
+
* Dmitrii Faiazov
|
| 536 |
+
* Amy Chan
|
| 537 |
+
* Chakita Muttaraju
|
| 538 |
+
* Fabien Le Frapper
|
| 539 |
+
* Jonathan "Yoni" Knoll
|
| 540 |
+
* Onkar Apte
|
| 541 |
+
* Justin Slay
|
| 542 |
+
* Desai Akshata
|
| 543 |
+
* Krzysztof Jeziorny
|
| 544 |
+
* Nick Moreton
|
| 545 |
+
* Bryan Williams
|
| 546 |
+
* Wout De Puysseleir
|
| 547 |
+
* Kamil Marut
|
| 548 |
+
* Jane Liu
|
| 549 |
+
* Joe Howard
|
| 550 |
+
* Jochen Wersdörfer
|
| 551 |
+
* Sakshi Uppoor
|
| 552 |
+
* Indresh P
|
| 553 |
+
* Rinish Sam
|
| 554 |
+
* Anirudh V S
|
| 555 |
+
* Shariq Jamil
|
| 556 |
+
* Kyle Bayliss
|
| 557 |
+
* John Simms
|
| 558 |
+
* Justin Michalicek
|
| 559 |
+
* Nabil Khalil
|
| 560 |
+
* Md. Fahim Bin Amin
|
| 561 |
+
* Michael Karamuth
|
| 562 |
+
* Vu Pham
|
| 563 |
+
* Khanh Hoang
|
| 564 |
+
* Jason Attwood
|
| 565 |
+
* Vladimir Tananko
|
| 566 |
+
* Rizwan Mansuri
|
| 567 |
+
* Dennis McGregor
|
| 568 |
+
* Joshua Munn
|
| 569 |
+
* Gianluca De Cola
|
| 570 |
+
* Paarth Agarwal
|
| 571 |
+
* Nicolas Ferrari
|
| 572 |
+
* Vibhakar Solanki
|
| 573 |
+
* Riley de Mestre
|
| 574 |
+
* Mariusz Felisiak
|
| 575 |
+
* Dharmik Gangani
|
| 576 |
+
* Kyle Hart
|
| 577 |
+
* Stephanie Cheng Smith
|
| 578 |
+
* Luis Espinoza
|
| 579 |
+
* Hitansh Shah
|
| 580 |
+
* Saurabh Kumar
|
| 581 |
+
* James Ray
|
| 582 |
+
* Anuja Verma
|
| 583 |
+
* Shrey Parekh
|
| 584 |
+
* Vinit Kumar
|
| 585 |
+
* Shwet Khatri
|
| 586 |
+
* Abdulmajeed Isa
|
| 587 |
+
* Sandil Ranasinghe
|
| 588 |
+
* Caio Jhonny
|
| 589 |
+
* Heather White
|
| 590 |
+
* Onno Timmerman
|
| 591 |
+
* Kyle J. Roux
|
| 592 |
+
* Vaibhav Shukla
|
| 593 |
+
* Rishank Kanaparti
|
| 594 |
+
* Daniel Kirkham
|
| 595 |
+
* Luz Paz
|
| 596 |
+
* Simon Krull
|
| 597 |
+
* Przemysław Buczkowski
|
| 598 |
+
* Josh Woodcock
|
| 599 |
+
* Christian Franke
|
| 600 |
+
* Tom Hu
|
| 601 |
+
* Thiago Costa de Souza
|
| 602 |
+
* Benedict Faw
|
| 603 |
+
* Lucie Le Frapper
|
| 604 |
+
* Jaspreet Singh
|
| 605 |
+
* Yves Serrano
|
| 606 |
+
* Hugh Rawlinson
|
| 607 |
+
* Noble Mittal
|
| 608 |
+
* Oliver Parker
|
| 609 |
+
* Viggo de Vries
|
| 610 |
+
* Yuekui
|
| 611 |
+
* Igor Strapko
|
| 612 |
+
* Sandeep M A
|
| 613 |
+
* Bernd de Ridder
|
| 614 |
+
* Stefano Silvestri
|
| 615 |
+
* Alexander Rogovskyy
|
| 616 |
+
* Dominik Lech
|
| 617 |
+
* Paritosh Kabra
|
| 618 |
+
* Akash Kumar Sen
|
| 619 |
+
* Xabier Bello
|
| 620 |
+
* Mehrdad Moradizadeh
|
| 621 |
+
* ariadi
|
| 622 |
+
* Thomas van der Hoeven
|
| 623 |
+
* Kurt Wall
|
| 624 |
+
* Adam Johnson
|
| 625 |
+
* Josh Thomas
|
| 626 |
+
* Christophe Bastin
|
| 627 |
+
* Nicholas Johnson
|
| 628 |
+
* Shohan Dutta Roy
|
| 629 |
+
* Alex (sashashura)
|
| 630 |
+
* Adinapunyo Banerjee
|
| 631 |
+
* Dan Hayden
|
| 632 |
+
* Jadesola Kareem
|
| 633 |
+
* Dauda Yusuf
|
| 634 |
+
* Damilola Oladele
|
| 635 |
+
* Albina Starykova
|
| 636 |
+
* Sam Moran
|
| 637 |
+
* Toyibat Adele
|
| 638 |
+
* Umar Farouk Yunusa
|
| 639 |
+
* Chizoba Nweke
|
| 640 |
+
* Seremba Patrick
|
| 641 |
+
* Ruqouyyah Muhammad
|
| 642 |
+
* Loveth Omokaro
|
| 643 |
+
* Abayomi Victory
|
| 644 |
+
* Victoria Poromon
|
| 645 |
+
* Darrel O'Pry
|
| 646 |
+
* Mary Ayobami
|
| 647 |
+
* Bolarinwa Comfort Ajayi
|
| 648 |
+
* Mary Ojo
|
| 649 |
+
* Oluwaloseyi Adeleye
|
| 650 |
+
* Dennis Onyeka
|
| 651 |
+
* Precious Arinda
|
| 652 |
+
* Ogunbanjo Oluwadamilare
|
| 653 |
+
* Damee Zivah Olawuyi
|
| 654 |
+
* Harry Percival
|
| 655 |
+
* Akua Dokua Asiedu
|
| 656 |
+
* Chisom Okeoma
|
| 657 |
+
* Marvis Chukwudi
|
| 658 |
+
* Jordan Rob
|
| 659 |
+
* Juliet Adeboye
|
| 660 |
+
* Yekasumah
|
| 661 |
+
* Theresa Okoro
|
| 662 |
+
* Omerzahid Ali
|
| 663 |
+
* Aman Pandey
|
| 664 |
+
* Doug Harris
|
| 665 |
+
* Mohammad Areeb
|
| 666 |
+
* Florian Vogt
|
| 667 |
+
* Fatuma Abdullahi
|
| 668 |
+
* Elizabeth Bassey
|
| 669 |
+
* Suyash Singh
|
| 670 |
+
* Temidayo Azeez
|
| 671 |
+
* Mark McOsker
|
| 672 |
+
* Benita Anawonah
|
| 673 |
+
* Anisha Singh
|
| 674 |
+
* Ivy Jeptoo
|
| 675 |
+
* Jeremy Thompson
|
| 676 |
+
* Ben Gosney
|
| 677 |
+
* damascene
|
| 678 |
+
* Natarajan Balaji
|
| 679 |
+
* Vallabh Tiwari
|
| 680 |
+
* dr-rompecabezas
|
| 681 |
+
* Rishabh jain
|
| 682 |
+
* Jhonatan Lopes
|
| 683 |
+
* Alex Simpson
|
| 684 |
+
* GLEF1X
|
| 685 |
+
|
| 686 |
+
Translators
|
| 687 |
+
===========
|
| 688 |
+
|
| 689 |
+
* Afrikaans: Jaco du Plessis, Jared Osborn
|
| 690 |
+
* Arabic: Bashar Al-Abdulhadi, Abdulaziz Alfuhigi, Roger Allen, Khaled Arnaout, Amr Awad, Mohammed Abdul Gadir, Mohamed HossamElDin, Ahmad Kiswani, Mohamed Mayla, Ahmed Miske Sidi Med, Younes Oumakhou, Ultraify Media
|
| 691 |
+
* Armenian: Vachagan
|
| 692 |
+
* Azerbaijani: Mirza Iskandarov
|
| 693 |
+
* Bangla: Mahmud Abdur Rahman
|
| 694 |
+
* Basque: Unai Zalakain
|
| 695 |
+
* Belarusian: Stas Rudakou, Tatsiana Tsygan
|
| 696 |
+
* Bulgarian: Lyuboslav Petrov
|
| 697 |
+
* Burmese: ime11
|
| 698 |
+
* Catalan: Antoni Aloy, David Llop, Roger Pons
|
| 699 |
+
* Chinese: hanfeng, Lihan Li, Leway Colin, Adeline Link, Orangle Liu, shengsheng gz
|
| 700 |
+
* Chinese (Simplified): Ed, Yin Guanhao, hanfeng, Fan Hei, Yi Huang, Daniel Hwang, Jian Li, Aosp T, Listeng Teng, Feng Wang, whuim, Favo Yang, Fred Zeng, Joey Zhao, Vincent Zhao, zhushajun
|
| 701 |
+
* Chinese (Traditional): gogobook, Andy Kong, Lihan Li, Ocin Leung, Jp Shieh, Chih Wang, Brian Xu, Yeh Yen-Ke, Yu Hsun Lee
|
| 702 |
+
* Croatian (Croatia): Dino Aljević, Marko Burazin, Ivica Dosen, Luka Matijević
|
| 703 |
+
* Czech: Ales Dvorak, Martin Galda, IT Management, Tomáš Jeřábek, Vláďa Macek, Eva Mikesova, Mořeplavec, Sophy O, Martina Oleksakova, Kryštof Pilnáček, Ivan Pomykacz, Jiri Stepanek, Marek Turnovec, Mirek Zvolský
|
| 704 |
+
* Danish: Benjamin Bach, Mads Kronborg, MRostgaard, Asger Sørensen
|
| 705 |
+
* Dutch: benny_AT_it_digin.com, Bram, Ramon de Jezus Brecht Dervaux, Harmen, Storm Heg, Kees Hink, Huib Keemink, Franklin Kingma, Maarten Kling, Thijs Kramer, Samuel Leeuwenburg, mahulst, Meteor0id, Rob Moorman, Benjamin van Renterghem, Michael van Tellingen, Arne Turpyn, Coen van der Kamp
|
| 706 |
+
* Estonian: Erlend Eelmets, Ragnar Rebase
|
| 707 |
+
* Finnish: Jiri Grönroos, Eetu Häivälä, Niklas Jerva, Aarni Koskela, Rauli Laine, Valter Maasalo, Glen Somerville, Juha Yrjölä
|
| 708 |
+
* French: Adrien, Timothy Allen, Sebastien Andrivet, Bertrand Bordage, André Bouatchidzé, Aurélien Debord, Romain Dorgueil, Tom Dyson, Antonin Enfrun, Axel Haustant, Renaud Kern, Fabien Le Frapper, Léo, Pierre Marfoure, nahuel, Sophy O, Dominique Peretti, fpoulain, Loïc Teixeira, Benoît Vogel
|
| 709 |
+
* Galician: X Bello, Amós Oviedo
|
| 710 |
+
* Georgian: André Bouatchidzé
|
| 711 |
+
* German: Ettore Atalan, Bohreromir, Matti Borchers, Benedikt Breinbauer, Donald Buczek, Patrick Craston, Peter Dreuw, Oliver Engel, Stefan Hammer, Patrick Hebner, Krzysztof Jeziorny, Benjamin Kaspar, Henrik Kröger, Tibor L, Tammo van Lessen, Martin Löhle, Wasilis Mandratzis-Walz, Daniel Manser, Matthias Martin, m0rph3u5, Max Pfeiffer, Moritz Pfeiffer, Herbert Poul, Karl Sander, Tobias Schmidt, Scriptim, Johannes Spielmann, Raphael Stolt, Benjamin Thurm, Norman Uekermann, unicode_it, Jannis Vajen, Florian Vogt, Alexander Weiß, Matthew Westcott, Benedikt Willi
|
| 712 |
+
* Greek: Jim Dal, Dimitri Fekas, George Giannoulopoulos, Yiannis Inglessis, Wasilis Mandratzis-Walz, Nick Mavrakis, NeotheOne, Serafeim Papastefanos
|
| 713 |
+
* Haitian: Hantz Vius
|
| 714 |
+
* Hebrew (Israel): Lior Abazon, bjesus, Yossi Lalum, Gilad Levi, Men770, Adi Ron, Oleg Sverdlov
|
| 715 |
+
* Hungarian: Istvan Farkas, Laszlo Molnar, Kornél Novák Mergulhão, BN, Patrik Radics, Aron Santa
|
| 716 |
+
* Icelandic (Iceland): Arnar Tumi Þorsteinsson, Kjartan Sverrisson, Sævar Öfjörð Magnússon
|
| 717 |
+
* Indonesian (Indonesia): atmosuwiryo, Sutrisno Efendi, Dzikri Hakim, Reshi Mahendra, Geek Pantura, Andry Widya Putra, Ronggo Radityo, M. Febrian Ramadhana
|
| 718 |
+
* Italian: Sandro Badalamenti, Marco Badan, Edd Baldry, Claudio Bantaloukas, Guglielmo Celata, Gian-Maria Daffre, gcm, Giacomo Ghizzani, LB (Ben Johnston), Marco Lerco, Stefano Marchetto, Carlo Miron, Alessio Di Stasio, Andrea Tagliazucchi
|
| 719 |
+
* Japanese: Sangmin Ahn, Goto Hayato, Shuhei Hirota, Shu Ishida, Yudai Kobayashi, Tri Minh, Koji Miyazawa, Tetsuya Morimoto, Hideaki Oguchi, Tomo Mizoe, Safu9, Hiroki Sawano, Kinoshita Shinji, Daigo Shitara, Shimizu Taku, umepon0626, Takuya Yamamoto
|
| 720 |
+
* Korean: Kyungil Choi, Jihan Chung
|
| 721 |
+
* Latvian: Aleksandrs Korņijenko, Reinis Rozenbergs, Maris Serzans
|
| 722 |
+
* Lithuanian: Matas Dailyda, Naglis Jonaitis
|
| 723 |
+
* Maori: Awatea Randall
|
| 724 |
+
* Mongolian: Myagmarjav Enkhbileg, Delgermurun Purevkhuu, Soft Exim
|
| 725 |
+
* Norwegian Bokmål: Eirik Krogstad, Ole Kristian Losvik, Robin Skahjem-Eriksen, Stein Strindhaug
|
| 726 |
+
* Persian: Mohsen Hassani, Mostafa Heidarian, Ehsan Jahanbakhsh, Mohammad reza Jelveh, Amir Mahmoodi, Mehdi, Mohammad Hossein Mojtahedi, Hamed Najand, Mohammad Sharif Shokouhi, Py Zenberg
|
| 727 |
+
* Polish: X Bello, Łukasz Bołdys, Krzysztof Jeziorny, Konrad Lalik, Dominik Lech, Miron Levitsky, Mateusz, Miłosz Miśkiewicz, Bartek Sielicki, Grzegorz Wasilewski, Bartosz Wiśniewski
|
| 728 |
+
* Portuguese (Brazil): Claudemiro Alves Feitosa Neto, AM, Bruno Bertoldi, Luiz Boaretto, Éder Brito, Gladson Brito, Thiago Cangussu, Daniel Carvalho, Vitor Hugo da Silva Lima, Rodrigo de Almeida Sottomaior Macedo, Gilson Filho, Joao Garcia, João Luiz Lorencetti, Iuri L. Machado, Marcio Mazza, Douglas Miranda, Guilherme Nabanete, Ed Wurch
|
| 729 |
+
* Portuguese (Portugal): Gladson Brito, Hugo Cachitas, Thiago Cangussu, Luís Tiago Favas, Diogo Gomes, Tiago Henriques, Jose Lourenco, Rui Martins, Nuno Matos, Douglas Miranda, Diogo Ribeiro, Diogo Silva, Manuela Silva
|
| 730 |
+
* Romanian: Dan Braghis, Julian C, Bogdan Mateescu
|
| 731 |
+
* Russian: ajk, Anatoly, Andrey Avdey, Vitaly Chekryzhev, Daniil, Mikhail Gerasimov, gsstver, sergeybe, Sergey Khalymon, Sergey Komarov, Miron Levitskiy, Arseni M, Sergey Mazanov, Eugene MechanisM, Rustam Mirzaev, Alexander Penshin, Mikalai Radchuk, Alexandr Romantsov, Mikhail Sidorov, Nikita Tonkoshkur, Alexey Trofimov, Tatsiana Tsygan, Viktor, Nikita Viktorovich, Vassiliy Vorobyov, Vlad
|
| 732 |
+
* Serbian: Nikola Kadić
|
| 733 |
+
* Slovak (Slovakia): Stevo Backor, dellax, Jozef Gáborík, Martin Janšto, Jozef Karabelly
|
| 734 |
+
* Slovenian: Andrej Marsetič, Mitja Pagon, Lev Predan Kowarski, Urban Prevc, Matej Stavanja
|
| 735 |
+
* Spanish: Antoni Aloy, Mauricio Baeza, Daniel Chimeno, Oscar Luciano Espirilla Flores, fonso, Hector Garcia, José Luis, Oluwadamilare Ogunbanjo, Amós Oviedo, Maylon Pedroso, Joaquín Tita, Daniel Wohlgemuth, Unai Zalakain
|
| 736 |
+
* Swedish: Philip Andersen, Andreas Bergström, Jim Brouzoulis, Oscar Fröberg, Alexander Holmbäck, Elias Johnstone, André Karlsson, Jon Karlsson, Ludwig Kjellström, Thomas Kunambi, Andreas Lans, Hannes Lohmander, Martin Sandström, Tomas Walch
|
| 737 |
+
* Tamil: Ramakrishnan Sathyanarayanan
|
| 738 |
+
* Tetum: Alessandro, Joanico Barros, Peter Coward, Mariano de Deus, Onorio de Jesus Afonso, Mario Alves Pinto
|
| 739 |
+
* Thai: Amawalee Combe, Jon Combe, Walaksawan Vervoort
|
| 740 |
+
* Turkish: Saadettin Yasir Akel, Umut Bektaş, Zafer Cengiz, Cihad Gündoǧdu, Basitlik İyidir, Fatih Koç koç, José Luis, Py Data, Ahmet Sarıcan, Halim Turan, Ragıp Ünal, Suayip Uzulmez
|
| 741 |
+
* Turkish (Turkey): Saadettin Yasir Akel, Basitlik İyidir, Umut Bektaş, Aydın Zafer Cengiz, lzm dgl, Cihad Gündoǧdu, Ahmet Serdar Karadeniz, Fatih Koç koç, José Luis, Py Data, Halim Turan, Ragıp Ünal
|
| 742 |
+
* Ukrainian: Yuri Fabirovsky, Vladislav Herasimenko, Mikolai Incognito, Anastasiia La, Sergiy Shkodenko, Viktor Shytiuk, Ivan Tyshchenko, Zoriana Zaiats, Mykola Zamkovoi
|
| 743 |
+
* Vietnamese: Amelia Dao, Duc Huynh, Hồng Quân Nguyễn, Luan Nguyen, Vu Pham
|
| 744 |
+
* Welsh: Philip Crisp, Adam Hughes
|
testbed/wagtail__wagtail/LICENSE
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2014-present Torchbox Ltd and individual contributors.
|
| 2 |
+
All rights reserved.
|
| 3 |
+
|
| 4 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 5 |
+
are permitted provided that the following conditions are met:
|
| 6 |
+
|
| 7 |
+
* Redistributions of source code must retain the above copyright notice,
|
| 8 |
+
this list of conditions and the following disclaimer.
|
| 9 |
+
|
| 10 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 11 |
+
notice, this list of conditions and the following disclaimer in the
|
| 12 |
+
documentation and/or other materials provided with the distribution.
|
| 13 |
+
|
| 14 |
+
* Neither the name of Torchbox nor the names of its contributors may be used
|
| 15 |
+
to endorse or promote products derived from this software without
|
| 16 |
+
specific prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 21 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
| 22 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 23 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
| 24 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
| 25 |
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 26 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
| 27 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
testbed/wagtail__wagtail/MANIFEST.in
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
include LICENSE *.rst *.txt *.md
|
| 2 |
+
graft wagtail
|
| 3 |
+
prune **/__pycache__
|
| 4 |
+
prune **/static_src
|
| 5 |
+
global-exclude *.py[co]
|
| 6 |
+
global-exclude *.stories.js
|
| 7 |
+
global-exclude *.stories.tsx
|
| 8 |
+
recursive-exclude wagtail/ *.md
|
| 9 |
+
global-exclude .gitignore
|
| 10 |
+
global-exclude wagtail-icomoon.json
|
testbed/wagtail__wagtail/Makefile
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.PHONY: clean-pyc develop lint-server lint-client lint-docs lint format-server format-client format test coverage
|
| 2 |
+
|
| 3 |
+
help:
|
| 4 |
+
@echo "clean-pyc - remove Python file artifacts"
|
| 5 |
+
@echo "develop - install development dependencies"
|
| 6 |
+
@echo "lint - check style with black, flake8, sort python with isort, indent html, and lint frontend css/js"
|
| 7 |
+
@echo "format - enforce a consistent code style across the codebase, sort python files with isort and fix frontend css/js"
|
| 8 |
+
@echo "test - run tests"
|
| 9 |
+
@echo "coverage - check code coverage"
|
| 10 |
+
|
| 11 |
+
clean-pyc:
|
| 12 |
+
find . -name '*.pyc' -exec rm -f {} +
|
| 13 |
+
find . -name '*.pyo' -exec rm -f {} +
|
| 14 |
+
find . -name '*~' -exec rm -f {} +
|
| 15 |
+
|
| 16 |
+
develop: clean-pyc
|
| 17 |
+
pip install -e .[testing,docs]
|
| 18 |
+
npm install --no-save && npm run build
|
| 19 |
+
|
| 20 |
+
lint-server:
|
| 21 |
+
black --target-version py37 --check --diff .
|
| 22 |
+
flake8
|
| 23 |
+
isort --check-only --diff .
|
| 24 |
+
semgrep --config .semgrep.yml --error .
|
| 25 |
+
curlylint --parse-only wagtail
|
| 26 |
+
git ls-files '*.html' | xargs djhtml --check
|
| 27 |
+
|
| 28 |
+
lint-client:
|
| 29 |
+
npm run lint:css --silent
|
| 30 |
+
npm run lint:js --silent
|
| 31 |
+
npm run lint:format --silent
|
| 32 |
+
|
| 33 |
+
lint-docs:
|
| 34 |
+
doc8 docs
|
| 35 |
+
|
| 36 |
+
lint: lint-server lint-client lint-docs
|
| 37 |
+
|
| 38 |
+
format-server:
|
| 39 |
+
black --target-version py37 .
|
| 40 |
+
isort .
|
| 41 |
+
git ls-files '*.html' | xargs djhtml -i
|
| 42 |
+
|
| 43 |
+
format-client:
|
| 44 |
+
npm run format
|
| 45 |
+
npm run fix:js
|
| 46 |
+
|
| 47 |
+
format: format-server format-client
|
| 48 |
+
|
| 49 |
+
test:
|
| 50 |
+
python runtests.py
|
| 51 |
+
|
| 52 |
+
coverage:
|
| 53 |
+
coverage run --source wagtail runtests.py
|
| 54 |
+
coverage report -m
|
| 55 |
+
coverage html
|
| 56 |
+
open coverage_html_report/index.html
|
testbed/wagtail__wagtail/README.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<h1 align="center">
|
| 2 |
+
<img width="343" src=".github/wagtail.svg#gh-light-mode-only" alt="Wagtail">
|
| 3 |
+
<img width="343" src=".github/wagtail-inverse.svg#gh-dark-mode-only" alt="Wagtail">
|
| 4 |
+
</h1>
|
| 5 |
+
<p align="center">
|
| 6 |
+
<br>
|
| 7 |
+
<a href="https://github.com/wagtail/wagtail/actions">
|
| 8 |
+
<img src="https://github.com/wagtail/wagtail/workflows/Wagtail%20CI/badge.svg" alt="Build Status" />
|
| 9 |
+
</a>
|
| 10 |
+
<a href="https://opensource.org/licenses/BSD-3-Clause">
|
| 11 |
+
<img src="https://img.shields.io/badge/license-BSD-blue.svg" alt="License" />
|
| 12 |
+
</a>
|
| 13 |
+
<a href="https://pypi.python.org/pypi/wagtail/">
|
| 14 |
+
<img src="https://img.shields.io/pypi/v/wagtail.svg" alt="Version" />
|
| 15 |
+
</a>
|
| 16 |
+
<a href="https://pypi.python.org/pypi/wagtail/">
|
| 17 |
+
<img src="https://img.shields.io/pypi/dm/wagtail?logo=Downloads" alt="Monthly downloads" />
|
| 18 |
+
</a>
|
| 19 |
+
<a href="https://twitter.com/WagtailCMS">
|
| 20 |
+
<img src="https://img.shields.io/twitter/follow/WagtailCMS?style=social&logo=twitter" alt="follow on Twitter">
|
| 21 |
+
</a>
|
| 22 |
+
</p>
|
| 23 |
+
|
| 24 |
+
Wagtail is an open source content management system built on Django, with a strong community and commercial support. It's focused on user experience, and offers precise control for designers and developers.
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
|
| 28 |
+
### 🔥 Features
|
| 29 |
+
|
| 30 |
+
- A fast, attractive interface for authors
|
| 31 |
+
- Complete control over front-end design and structure
|
| 32 |
+
- Scales to millions of pages and thousands of editors
|
| 33 |
+
- Fast out of the box, cache-friendly when you need it
|
| 34 |
+
- Content API for 'headless' sites with de-coupled front-end
|
| 35 |
+
- Runs on a Raspberry Pi or a multi-datacenter cloud platform
|
| 36 |
+
- StreamField encourages flexible content without compromising structure
|
| 37 |
+
- Powerful, integrated search, using Elasticsearch or PostgreSQL
|
| 38 |
+
- Excellent support for images and embedded content
|
| 39 |
+
- Multi-site and multi-language ready
|
| 40 |
+
- Embraces and extends Django
|
| 41 |
+
|
| 42 |
+
Find out more at [wagtail.org](https://wagtail.org/).
|
| 43 |
+
|
| 44 |
+
### 👉 Getting started
|
| 45 |
+
|
| 46 |
+
Wagtail works with [Python 3](https://www.python.org/downloads/), on any platform.
|
| 47 |
+
|
| 48 |
+
To get started with using Wagtail, run the following in a virtual environment:
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
|
| 52 |
+
```sh
|
| 53 |
+
pip install wagtail
|
| 54 |
+
wagtail start mysite
|
| 55 |
+
cd mysite
|
| 56 |
+
pip install -r requirements.txt
|
| 57 |
+
python manage.py migrate
|
| 58 |
+
python manage.py createsuperuser
|
| 59 |
+
python manage.py runserver
|
| 60 |
+
```
|
| 61 |
+
|
| 62 |
+
For detailed installation and setup docs, see [the getting started tutorial](https://docs.wagtail.org/en/stable/getting_started/tutorial.html).
|
| 63 |
+
|
| 64 |
+
### 👨👩👧👦 Who’s using it?
|
| 65 |
+
|
| 66 |
+
Wagtail is used by [NASA](https://www.nasa.gov/), [Google](https://www.google.com/), [Oxfam](https://www.oxfam.org/en), the [NHS](https://www.nhs.uk/), [Mozilla](https://www.mozilla.org/en-US/), [MIT](https://www.mit.edu/), the [Red Cross](https://www.icrc.org/en), [Salesforce](https://www.salesforce.com/), [NBC](https://www.nbc.com/), [BMW](https://www.bmw.com/en/index.html), and the US and UK governments. Add your own Wagtail site to [madewithwagtail.org](https://madewithwagtail.org).
|
| 67 |
+
|
| 68 |
+
### 📖 Documentation
|
| 69 |
+
|
| 70 |
+
[docs.wagtail.org](https://docs.wagtail.org/) is the full reference for Wagtail, and includes guides for developers, designers and editors, alongside release notes and our roadmap.
|
| 71 |
+
|
| 72 |
+
For those who are **new to Wagtail**, the [Zen of Wagtail](https://docs.wagtail.org/en/stable/getting_started/the_zen_of_wagtail.html) will help you understand what Wagtail is, and what Wagtail is _not_.
|
| 73 |
+
|
| 74 |
+
**For developers** who are ready to jump in to their first Wagtail website the [Getting Started Tutorial](https://docs.wagtail.org/en/stable/getting_started/tutorial.html) will guide you through creating and editing your first page.
|
| 75 |
+
|
| 76 |
+
**Do you have an existing Django project?** The [Wagtail Integration documentation](https://docs.wagtail.org/en/stable/getting_started/integrating_into_django.html) is the best place to start.
|
| 77 |
+
|
| 78 |
+
### 📌 Compatibility
|
| 79 |
+
|
| 80 |
+
_(If you are reading this on GitHub, the details here may not be indicative of the current released version - please see [Compatible Django / Python versions](https://docs.wagtail.org/en/stable/releases/upgrading.html#compatible-django-python-versions) in the Wagtail documentation.)_
|
| 81 |
+
|
| 82 |
+
Wagtail supports:
|
| 83 |
+
|
| 84 |
+
- Django 3.2.x, 4.0.x and 4.1.x
|
| 85 |
+
- Python 3.7, 3.8, 3.9, 3.10 and 3.11
|
| 86 |
+
- PostgreSQL, MySQL and SQLite (with JSON1) as database backends
|
| 87 |
+
|
| 88 |
+
[Previous versions of Wagtail](https://docs.wagtail.org/en/stable/releases/upgrading.html#compatible-django-python-versions) additionally supported Python 2.7 and earlier Django versions.
|
| 89 |
+
|
| 90 |
+
---
|
| 91 |
+
|
| 92 |
+
### 📢 Community Support
|
| 93 |
+
|
| 94 |
+
There is an active community of Wagtail users and developers responding to questions on [Stack Overflow](https://stackoverflow.com/questions/tagged/wagtail). When posting questions, please read Stack Overflow's advice on [how to ask questions](https://stackoverflow.com/help/how-to-ask) and remember to tag your question "wagtail".
|
| 95 |
+
|
| 96 |
+
For topics and discussions that do not fit Stack Overflow's question and answer format we have a [Slack workspace](https://github.com/wagtail/wagtail/wiki/Slack). Please respect the time and effort of volunteers by not asking the same question in multiple places.
|
| 97 |
+
|
| 98 |
+
[](https://github.com/wagtail/wagtail/wiki/Slack)
|
| 99 |
+
|
| 100 |
+
Our [Github discussion boards](https://github.com/wagtail/wagtail/discussions) are open for sharing ideas and plans for the Wagtail project.
|
| 101 |
+
|
| 102 |
+
We maintain a curated list of third party packages, articles and other resources at [Awesome Wagtail](https://github.com/springload/awesome-wagtail).
|
| 103 |
+
|
| 104 |
+
### 🧑💼 Commercial Support
|
| 105 |
+
|
| 106 |
+
Wagtail is sponsored by [Torchbox](https://torchbox.com/). If you need help implementing or hosting Wagtail, please contact us: hello@torchbox.com. See also [madewithwagtail.org/developers/](https://madewithwagtail.org/developers/) for expert Wagtail developers around the world.
|
| 107 |
+
|
| 108 |
+
### 🔐 Security
|
| 109 |
+
|
| 110 |
+
We take the security of Wagtail, and related packages we maintain, seriously. If you have found a security issue with any of our projects please email us at [security@wagtail.org](mailto:security@wagtail.org) so we can work together to find and patch the issue. We appreciate responsible disclosure with any security related issues, so please contact us first before creating a Github issue.
|
| 111 |
+
|
| 112 |
+
If you want to send an encrypted email (optional), the public key ID for security@wagtail.org is 0xbed227b4daf93ff9, and this public key is available from most commonly-used keyservers.
|
| 113 |
+
|
| 114 |
+
### 🕒 Release schedule
|
| 115 |
+
|
| 116 |
+
Feature releases of Wagtail are released every three months. Selected releases are designated as Long Term Support (LTS) releases, and will receive maintenance updates for an extended period to address any security and data-loss related issues. For dates of past and upcoming releases and support periods, see [Release Schedule](https://github.com/wagtail/wagtail/wiki/Release-schedule).
|
| 117 |
+
|
| 118 |
+
#### 🕛 Nightly releases
|
| 119 |
+
|
| 120 |
+
To try out the latest features before a release, we also create builds from `main` every night. You can find instructions on how to install the latest nightly release at https://releases.wagtail.org/nightly/index.html
|
| 121 |
+
|
| 122 |
+
### 🙋🏽 Contributing
|
| 123 |
+
|
| 124 |
+
If you're a Python or Django developer, fork the repo and get stuck in! We have several developer focused channels on the [Slack workspace](https://github.com/wagtail/wagtail/wiki/Slack).
|
| 125 |
+
|
| 126 |
+
You might like to start by reviewing the [contributing guidelines](https://docs.wagtail.org/en/latest/contributing/index.html) and checking issues with the [good first issue](https://github.com/wagtail/wagtail/labels/good%20first%20issue) label.
|
| 127 |
+
|
| 128 |
+
We also welcome translations for Wagtail's interface. Translation work should be submitted through [Transifex](https://explore.transifex.com/torchbox/wagtail/).
|
| 129 |
+
|
| 130 |
+
### 🔓 License
|
| 131 |
+
|
| 132 |
+
[BSD](https://github.com/wagtail/wagtail/blob/main/LICENSE) - Free to use and modify for any purpose, including both open and closed-source code.
|
| 133 |
+
|
| 134 |
+
### 👏 Thanks
|
| 135 |
+
|
| 136 |
+
We thank the following organisations for their services used in Wagtail's development:
|
| 137 |
+
|
| 138 |
+
[](https://www.browserstack.com/)<br>
|
| 139 |
+
[BrowserStack](https://www.browserstack.com/) provides the project with free access to their live web-based browser testing tool, and automated Selenium cloud testing.
|
| 140 |
+
|
| 141 |
+
[](https://www.squash.io/)<br>
|
| 142 |
+
[Squash](https://www.squash.io/) provides the project with free test environments for reviewing pull requests.
|
| 143 |
+
|
| 144 |
+
[](https://assistivlabs.com/)<br>
|
| 145 |
+
[Assistiv Labs](https://assistivlabs.com/) provides the project with unlimited access to their remote testing with assistive technologies.
|
testbed/wagtail__wagtail/SECURITY.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Security
|
| 2 |
+
|
| 3 |
+
We take the security of Wagtail, and related packages we maintain, seriously. If you have found a security issue with any of our projects please email us at security@wagtail.org so we can work together to find and patch the issue. We appreciate responsible disclosure with any security related issues, so please contact us first before creating a Github issue.
|
| 4 |
+
|
| 5 |
+
If you want to send an encrypted email (optional), the public key ID for security@wagtail.org is [0xbed227b4daf93ff9](https://keyserver.ubuntu.com/pks/lookup?search=0xbed227b4daf93ff9&fingerprint=on&op=index), and this public key is available from most commonly-used keyservers.
|
| 6 |
+
|
| 7 |
+
This information can also be found in our security.txt: https://docs.wagtail.org/.well-known/security.txt
|
testbed/wagtail__wagtail/SPONSORS.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sponsors
|
| 2 |
+
|
| 3 |
+
The following organisations and individuals supported the [Wagtail's First Hatch](https://www.kickstarter.com/projects/noripyt/wagtails-first-hatch) crowdfunding campaign:
|
| 4 |
+
|
| 5 |
+
- [Springload](https://springload.nz/)
|
| 6 |
+
- [NetFM](https://netfm.org/)
|
| 7 |
+
- [Ambient Innovation](https://ambient-innovation.com/)
|
| 8 |
+
- [Shenberger Technology](http://shenbergertech.com/)
|
| 9 |
+
- [Type/Code](https://typecode.com/)
|
| 10 |
+
- [SharperTool](https://sharpertool.com/)
|
| 11 |
+
- [Overcast Software](https://www.overcast.io/)
|
| 12 |
+
- [Octave](https://octave.nz/)
|
| 13 |
+
- [Taywa](https://www.taywa.ch/)
|
| 14 |
+
- [Rock Kitchen Harris](https://www.rkh.co.uk/)
|
| 15 |
+
- [The Motley Fool](https://www.fool.com/)
|
| 16 |
+
- [R Strother Scott](https://twitter.com/rstrotherscott)
|
| 17 |
+
- [Beyond Media](https://www.beyond.works/)
|
| 18 |
+
|
| 19 |
+
The features below were developed thanks to the sponsorship of these organsations:
|
| 20 |
+
|
| 21 |
+
- Collections for images and documents - [University of South Wales](https://www.southwales.ac.uk/)
|
| 22 |
+
|
| 23 |
+
- Display of revision differences - [Blackstone Chambers](https://www.blackstonechambers.com/)
|
| 24 |
+
|
| 25 |
+
- Privacy settings on collections of documents - [Wharton Research Data Services](https://www.WhartonWRDS.com/) of [The Wharton School](https://www.wharton.upenn.edu)
|
| 26 |
+
|
| 27 |
+
- Hooks for overriding menu actions - [The Motley Fool](https://www.fool.com/)
|
| 28 |
+
|
| 29 |
+
- Improved page locking - [The Motley Fool](https://www.fool.com/)
|
| 30 |
+
|
| 31 |
+
- Exporting data from reports, form submissions and ModelAdmin - [The Motley Fool](https://www.fool.com/)
|
| 32 |
+
|
| 33 |
+
- Moderation workflow - [The Motley Fool](https://www.fool.com/)
|
| 34 |
+
|
| 35 |
+
- Complex search queries - [The Motley Fool](https://www.fool.com/)
|
| 36 |
+
|
| 37 |
+
- Multi-lingual content - [Torchbox](https://torchbox.com/wagtail-cms/) and [The Mozilla Foundation](https://foundation.mozilla.org/en/)
|
| 38 |
+
|
| 39 |
+
- Page aliases - [The Mozilla Foundation](https://foundation.mozilla.org/en/)
|
| 40 |
+
|
| 41 |
+
- Hooks for Snippet customisation - [The Mozilla Foundation](https://foundation.mozilla.org/en/)
|
| 42 |
+
|
| 43 |
+
- Utility for testing hooks - [The Mozilla Foundation](https://foundation.mozilla.org/en/)
|
| 44 |
+
|
| 45 |
+
- Telepath for StreamField editing - [YouGov](https://yougov.co.uk/)
|
| 46 |
+
|
| 47 |
+
- Commenting - [The Motley Fool](https://www.fool.com/)
|
| 48 |
+
|
| 49 |
+
- Automatic redirect creation - [The National Archives](https://www.nationalarchives.gov.uk)
|
| 50 |
+
|
| 51 |
+
- Persistent IDs for ListBlock items - [NHS](https://www.nhs.uk/)
|
| 52 |
+
|
| 53 |
+
- Page editor redesign - [Google](http://google.com/)
|
| 54 |
+
|
| 55 |
+
- StreamField rich text block splitter - [The Motley Fool](https://www.fool.com/)
|
testbed/wagtail__wagtail/codecov.yml
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
codecov:
|
| 2 |
+
notify:
|
| 3 |
+
require_ci_to_pass: no
|
| 4 |
+
|
| 5 |
+
coverage:
|
| 6 |
+
status:
|
| 7 |
+
project:
|
| 8 |
+
default:
|
| 9 |
+
informational: true
|
| 10 |
+
patch:
|
| 11 |
+
default:
|
| 12 |
+
informational: true
|
| 13 |
+
|
| 14 |
+
comment: off
|
testbed/wagtail__wagtail/conftest.py
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import shutil
|
| 3 |
+
import warnings
|
| 4 |
+
|
| 5 |
+
import django
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def pytest_addoption(parser):
|
| 9 |
+
parser.addoption(
|
| 10 |
+
"--deprecation",
|
| 11 |
+
choices=["all", "pending", "imminent", "none"],
|
| 12 |
+
default="pending",
|
| 13 |
+
)
|
| 14 |
+
parser.addoption("--postgres", action="store_true")
|
| 15 |
+
parser.addoption("--elasticsearch", action="store_true")
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def pytest_configure(config):
|
| 19 |
+
deprecation = config.getoption("deprecation")
|
| 20 |
+
|
| 21 |
+
only_wagtail = r"^wagtail(\.|$)"
|
| 22 |
+
if deprecation == "all":
|
| 23 |
+
# Show all deprecation warnings from all packages
|
| 24 |
+
warnings.simplefilter("default", DeprecationWarning)
|
| 25 |
+
warnings.simplefilter("default", PendingDeprecationWarning)
|
| 26 |
+
elif deprecation == "pending":
|
| 27 |
+
# Show all deprecation warnings from wagtail
|
| 28 |
+
warnings.filterwarnings(
|
| 29 |
+
"default", category=DeprecationWarning, module=only_wagtail
|
| 30 |
+
)
|
| 31 |
+
warnings.filterwarnings(
|
| 32 |
+
"default", category=PendingDeprecationWarning, module=only_wagtail
|
| 33 |
+
)
|
| 34 |
+
elif deprecation == "imminent":
|
| 35 |
+
# Show only imminent deprecation warnings from wagtail
|
| 36 |
+
warnings.filterwarnings(
|
| 37 |
+
"default", category=DeprecationWarning, module=only_wagtail
|
| 38 |
+
)
|
| 39 |
+
elif deprecation == "none":
|
| 40 |
+
# Deprecation warnings are ignored by default
|
| 41 |
+
pass
|
| 42 |
+
|
| 43 |
+
if config.getoption("postgres"):
|
| 44 |
+
os.environ["DATABASE_ENGINE"] = "django.db.backends.postgresql"
|
| 45 |
+
|
| 46 |
+
# Setup django after processing the pytest arguments so that the env
|
| 47 |
+
# variables are available in the settings
|
| 48 |
+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wagtail.test.settings")
|
| 49 |
+
django.setup()
|
| 50 |
+
|
| 51 |
+
# Activate a language: This affects HTTP header HTTP_ACCEPT_LANGUAGE sent by
|
| 52 |
+
# the Django test client.
|
| 53 |
+
from django.utils import translation
|
| 54 |
+
|
| 55 |
+
translation.activate("en")
|
| 56 |
+
|
| 57 |
+
from wagtail.test.settings import MEDIA_ROOT, STATIC_ROOT
|
| 58 |
+
|
| 59 |
+
shutil.rmtree(STATIC_ROOT, ignore_errors=True)
|
| 60 |
+
shutil.rmtree(MEDIA_ROOT, ignore_errors=True)
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
def pytest_unconfigure(config):
|
| 64 |
+
from wagtail.test.settings import MEDIA_ROOT, STATIC_ROOT
|
| 65 |
+
|
| 66 |
+
shutil.rmtree(STATIC_ROOT, ignore_errors=True)
|
| 67 |
+
shutil.rmtree(MEDIA_ROOT, ignore_errors=True)
|
testbed/wagtail__wagtail/etc/nginx.conf.sample
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# vim:sw=4 ts=4 et:
|
| 2 |
+
#
|
| 3 |
+
# This is a sample nginx configuration for a Wagtail application running under
|
| 4 |
+
# uWSGI.
|
| 5 |
+
|
| 6 |
+
server {
|
| 7 |
+
# We don't set 'root' here, because we send location / to uWSGI, so
|
| 8 |
+
# nothing ends up at nginx's default handler.
|
| 9 |
+
|
| 10 |
+
listen 80;
|
| 11 |
+
server_name mywagtail.org;
|
| 12 |
+
|
| 13 |
+
error_log /var/log/nginx/mywagtail.org_error.log;
|
| 14 |
+
access_log /var/log/nginx/mywagtail.org_access.log;
|
| 15 |
+
|
| 16 |
+
# Maximum file upload size.
|
| 17 |
+
client_max_body_size 64M;
|
| 18 |
+
|
| 19 |
+
# Enable content compression for text types.
|
| 20 |
+
gzip on;
|
| 21 |
+
gzip_types text/plain text/css application/x-javascript image/svg+xml;
|
| 22 |
+
gzip_comp_level 1;
|
| 23 |
+
gzip_disable msie6;
|
| 24 |
+
gzip_http_version 1.0;
|
| 25 |
+
gzip_proxied any;
|
| 26 |
+
gzip_vary on;
|
| 27 |
+
|
| 28 |
+
location /static/ {
|
| 29 |
+
access_log off;
|
| 30 |
+
expires 3600;
|
| 31 |
+
alias /home/mywagtail/app/static/;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
# Set a longer expiry for CACHE/, because the filenames are unique.
|
| 35 |
+
location /static/CACHE/ {
|
| 36 |
+
access_log off;
|
| 37 |
+
expires 864000;
|
| 38 |
+
alias /home/mywagtail/app/static/CACHE/;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
# Only serve /media/images/ by default, not e.g. original_images/.
|
| 42 |
+
location /media/images/ {
|
| 43 |
+
expires 864000;
|
| 44 |
+
alias /home/mywagtail/app/media/images/;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
location / {
|
| 48 |
+
include uwsgi_params;
|
| 49 |
+
uwsgi_pass unix:/home/mywagtail/mywagtail.sock;
|
| 50 |
+
break;
|
| 51 |
+
}
|
| 52 |
+
}
|
testbed/wagtail__wagtail/package-lock.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
testbed/wagtail__wagtail/package.json
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "wagtail",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"repository": "https://github.com/wagtail/wagtail",
|
| 5 |
+
"private": true,
|
| 6 |
+
"engines": {
|
| 7 |
+
"node": ">=18.0.0"
|
| 8 |
+
},
|
| 9 |
+
"browserslist": [
|
| 10 |
+
"Firefox ESR",
|
| 11 |
+
"last 2 Chrome versions",
|
| 12 |
+
"last 2 ChromeAndroid versions",
|
| 13 |
+
"last 2 Edge versions",
|
| 14 |
+
"last 1 Firefox version",
|
| 15 |
+
"last 2 iOS versions",
|
| 16 |
+
"last 3 Safari versions",
|
| 17 |
+
"not safari 13",
|
| 18 |
+
"not ie 11"
|
| 19 |
+
],
|
| 20 |
+
"jest": {
|
| 21 |
+
"moduleFileExtensions": [
|
| 22 |
+
"js",
|
| 23 |
+
"ts",
|
| 24 |
+
"tsx",
|
| 25 |
+
"json",
|
| 26 |
+
"node"
|
| 27 |
+
],
|
| 28 |
+
"moduleNameMapper": {
|
| 29 |
+
"jquery": "<rootDir>/wagtail/admin/static_src/wagtailadmin/js/vendor/jquery-3.6.0.min.js"
|
| 30 |
+
},
|
| 31 |
+
"transform": {
|
| 32 |
+
"^.+\\.(js|ts|tsx)$": "ts-jest"
|
| 33 |
+
},
|
| 34 |
+
"testPathIgnorePatterns": [
|
| 35 |
+
"/node_modules/",
|
| 36 |
+
"/build/",
|
| 37 |
+
"client/tests/integration"
|
| 38 |
+
],
|
| 39 |
+
"coveragePathIgnorePatterns": [
|
| 40 |
+
"/node_modules/",
|
| 41 |
+
"/tests/"
|
| 42 |
+
],
|
| 43 |
+
"setupFiles": [
|
| 44 |
+
"./client/tests/adapter.js",
|
| 45 |
+
"./client/tests/stubs.js",
|
| 46 |
+
"./client/tests/mock-fetch.js",
|
| 47 |
+
"./client/tests/mock-jquery.js"
|
| 48 |
+
],
|
| 49 |
+
"setupFilesAfterEnv": [
|
| 50 |
+
"./client/tests/utils.js"
|
| 51 |
+
],
|
| 52 |
+
"snapshotSerializers": [
|
| 53 |
+
"enzyme-to-json/serializer"
|
| 54 |
+
]
|
| 55 |
+
},
|
| 56 |
+
"devDependencies": {
|
| 57 |
+
"@babel/core": "^7.16.7",
|
| 58 |
+
"@storybook/addon-controls": "^6.4.19",
|
| 59 |
+
"@storybook/addon-docs": "^6.4.19",
|
| 60 |
+
"@storybook/builder-webpack5": "^6.4.19",
|
| 61 |
+
"@storybook/manager-webpack5": "^6.4.19",
|
| 62 |
+
"@storybook/react": "^6.4.19",
|
| 63 |
+
"@types/draft-js": "^0.10.45",
|
| 64 |
+
"@types/jest": "^26.0.24",
|
| 65 |
+
"@types/jquery": "^3.5.14",
|
| 66 |
+
"@types/react": "^16.14.21",
|
| 67 |
+
"@types/react-dom": "^16.0",
|
| 68 |
+
"@types/react-redux": "^7.1.20",
|
| 69 |
+
"@typescript-eslint/eslint-plugin": "^5.8.0",
|
| 70 |
+
"@typescript-eslint/parser": "^5.8.0",
|
| 71 |
+
"@wagtail/eslint-config-wagtail": "^0.4.0",
|
| 72 |
+
"@wagtail/stylelint-config-wagtail": "^0.5.0",
|
| 73 |
+
"autoprefixer": "^10.4.2",
|
| 74 |
+
"babel-loader": "^8.2.3",
|
| 75 |
+
"copy-webpack-plugin": "^10.2.0",
|
| 76 |
+
"css-loader": "^6.5.1",
|
| 77 |
+
"cssnano": "^5.0.14",
|
| 78 |
+
"enzyme": "^3.11.0",
|
| 79 |
+
"enzyme-adapter-react-16": "^1.15.6",
|
| 80 |
+
"enzyme-to-json": "^3.6.2",
|
| 81 |
+
"eslint": "^8.5.0",
|
| 82 |
+
"expose-loader": "^3.1.0",
|
| 83 |
+
"gettext-extractor": "^3.5.3",
|
| 84 |
+
"jest": "^26.6.3",
|
| 85 |
+
"mini-css-extract-plugin": "^2.4.5",
|
| 86 |
+
"postcss": "^8.4.7",
|
| 87 |
+
"postcss-loader": "^6.2.1",
|
| 88 |
+
"prettier": "^2.5.1",
|
| 89 |
+
"react-test-renderer": "^16.14.0",
|
| 90 |
+
"redux-mock-store": "^1.3.0",
|
| 91 |
+
"sass": "^1.45.1",
|
| 92 |
+
"sass-loader": "^12.4.0",
|
| 93 |
+
"storybook-django": "^0.5.1",
|
| 94 |
+
"stylelint": "^14.2.0",
|
| 95 |
+
"tailwindcss": "^3.1.5",
|
| 96 |
+
"tailwindcss-vanilla-rtl": "^0.2.0",
|
| 97 |
+
"ts-jest": "^26.5.6",
|
| 98 |
+
"ts-loader": "^9.2.6",
|
| 99 |
+
"typescript": "^4.5.4",
|
| 100 |
+
"webpack": "^5.65.0",
|
| 101 |
+
"webpack-cli": "^4.9.1"
|
| 102 |
+
},
|
| 103 |
+
"dependencies": {
|
| 104 |
+
"@hotwired/stimulus": "^3.2.1",
|
| 105 |
+
"@tippyjs/react": "^4.2.6",
|
| 106 |
+
"a11y-dialog": "^7.4.0",
|
| 107 |
+
"axe-core": "^4.6.2",
|
| 108 |
+
"draft-js": "^0.10.5",
|
| 109 |
+
"draftail": "^2.0.0-rc.2",
|
| 110 |
+
"draftjs-filters": "^3.0.1",
|
| 111 |
+
"focus-trap-react": "^8.4.2",
|
| 112 |
+
"immer": "^9.0.6",
|
| 113 |
+
"js-cookie": "^2.2.1",
|
| 114 |
+
"prop-types": "^15.6.2",
|
| 115 |
+
"react": "^16.14.0",
|
| 116 |
+
"react-dom": "^16.14.0",
|
| 117 |
+
"react-redux": "^7.2.2",
|
| 118 |
+
"react-transition-group": "^1.1.3",
|
| 119 |
+
"redux": "^4.0.0",
|
| 120 |
+
"redux-thunk": "^2.3.0",
|
| 121 |
+
"reselect": "^4.0.0",
|
| 122 |
+
"telepath-unpack": "^0.0.3",
|
| 123 |
+
"tippy.js": "^6.3.7",
|
| 124 |
+
"uuid": "^8.3.2"
|
| 125 |
+
},
|
| 126 |
+
"scripts": {
|
| 127 |
+
"start": "webpack --config ./client/webpack.config.js --mode development --progress --watch",
|
| 128 |
+
"build": "webpack --config ./client/webpack.config.js --mode production",
|
| 129 |
+
"fix:js": "eslint --ext .js,.ts,.tsx --fix .",
|
| 130 |
+
"format": "prettier --write \"**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}\"",
|
| 131 |
+
"lint:js": "eslint --ext .js,.ts,.tsx --report-unused-disable-directives .",
|
| 132 |
+
"lint:css": "stylelint **/*.scss",
|
| 133 |
+
"lint:format": "prettier --check \"**/?(.)*.{css,scss,js,ts,tsx,json,yaml,yml}\"",
|
| 134 |
+
"lint": "npm run lint:js && npm run lint:css && npm run lint:format",
|
| 135 |
+
"test": "npm run test:unit",
|
| 136 |
+
"test:unit": "jest",
|
| 137 |
+
"test:unit:watch": "jest --watch",
|
| 138 |
+
"test:unit:coverage": "jest --coverage",
|
| 139 |
+
"test:integration": "./client/tests/integration/node_modules/.bin/jest --config ./client/tests/integration/jest.config.js",
|
| 140 |
+
"storybook": "start-storybook -c client/storybook -p 6006 --no-open --no-version-updates --no-release-notes --quiet --modern",
|
| 141 |
+
"build-storybook": "build-storybook -c client/storybook --modern"
|
| 142 |
+
}
|
| 143 |
+
}
|
testbed/wagtail__wagtail/prettier.config.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* See https://prettier.io/docs/en/options.html.
|
| 3 |
+
*/
|
| 4 |
+
module.exports = {
|
| 5 |
+
arrowParens: 'always',
|
| 6 |
+
bracketSameLine: false,
|
| 7 |
+
bracketSpacing: true,
|
| 8 |
+
embeddedLanguageFormatting: 'auto',
|
| 9 |
+
endOfLine: 'lf',
|
| 10 |
+
htmlWhitespaceSensitivity: 'css',
|
| 11 |
+
jsxSingleQuote: false,
|
| 12 |
+
printWidth: 80,
|
| 13 |
+
proseWrap: 'preserve',
|
| 14 |
+
quoteProps: 'consistent',
|
| 15 |
+
semi: true,
|
| 16 |
+
singleQuote: true,
|
| 17 |
+
trailingComma: 'all',
|
| 18 |
+
};
|
testbed/wagtail__wagtail/runtests.py
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
import argparse
|
| 4 |
+
import os
|
| 5 |
+
import shutil
|
| 6 |
+
import sys
|
| 7 |
+
import warnings
|
| 8 |
+
|
| 9 |
+
from django.core.management import execute_from_command_line
|
| 10 |
+
|
| 11 |
+
os.environ["DJANGO_SETTINGS_MODULE"] = "wagtail.test.settings"
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def make_parser():
|
| 15 |
+
parser = argparse.ArgumentParser()
|
| 16 |
+
parser.add_argument(
|
| 17 |
+
"--deprecation",
|
| 18 |
+
choices=["all", "pending", "imminent", "none"],
|
| 19 |
+
default="imminent",
|
| 20 |
+
)
|
| 21 |
+
parser.add_argument("--postgres", action="store_true")
|
| 22 |
+
parser.add_argument("--elasticsearch5", action="store_true")
|
| 23 |
+
parser.add_argument("--elasticsearch6", action="store_true")
|
| 24 |
+
parser.add_argument("--elasticsearch7", action="store_true")
|
| 25 |
+
parser.add_argument("--emailuser", action="store_true")
|
| 26 |
+
parser.add_argument("--disabletimezone", action="store_true")
|
| 27 |
+
parser.add_argument("--bench", action="store_true")
|
| 28 |
+
return parser
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def parse_args(args=None):
|
| 32 |
+
return make_parser().parse_known_args(args)
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
def runtests():
|
| 36 |
+
args, rest = parse_args()
|
| 37 |
+
|
| 38 |
+
only_wagtail = r"^wagtail(\.|$)"
|
| 39 |
+
if args.deprecation == "all":
|
| 40 |
+
# Show all deprecation warnings from all packages
|
| 41 |
+
warnings.simplefilter("default", DeprecationWarning)
|
| 42 |
+
warnings.simplefilter("default", PendingDeprecationWarning)
|
| 43 |
+
elif args.deprecation == "pending":
|
| 44 |
+
# Show all deprecation warnings from wagtail
|
| 45 |
+
warnings.filterwarnings(
|
| 46 |
+
"default", category=DeprecationWarning, module=only_wagtail
|
| 47 |
+
)
|
| 48 |
+
warnings.filterwarnings(
|
| 49 |
+
"default", category=PendingDeprecationWarning, module=only_wagtail
|
| 50 |
+
)
|
| 51 |
+
elif args.deprecation == "imminent":
|
| 52 |
+
# Show only imminent deprecation warnings from wagtail
|
| 53 |
+
warnings.filterwarnings(
|
| 54 |
+
"default", category=DeprecationWarning, module=only_wagtail
|
| 55 |
+
)
|
| 56 |
+
elif args.deprecation == "none":
|
| 57 |
+
# Deprecation warnings are ignored by default
|
| 58 |
+
pass
|
| 59 |
+
|
| 60 |
+
if args.postgres:
|
| 61 |
+
os.environ["DATABASE_ENGINE"] = "django.db.backends.postgresql"
|
| 62 |
+
|
| 63 |
+
if args.elasticsearch5:
|
| 64 |
+
os.environ.setdefault("ELASTICSEARCH_URL", "http://localhost:9200")
|
| 65 |
+
os.environ.setdefault("ELASTICSEARCH_VERSION", "5")
|
| 66 |
+
elif args.elasticsearch6:
|
| 67 |
+
os.environ.setdefault("ELASTICSEARCH_URL", "http://localhost:9200")
|
| 68 |
+
os.environ.setdefault("ELASTICSEARCH_VERSION", "6")
|
| 69 |
+
elif args.elasticsearch7:
|
| 70 |
+
os.environ.setdefault("ELASTICSEARCH_URL", "http://localhost:9200")
|
| 71 |
+
os.environ.setdefault("ELASTICSEARCH_VERSION", "7")
|
| 72 |
+
|
| 73 |
+
elif "ELASTICSEARCH_URL" in os.environ:
|
| 74 |
+
# forcibly delete the ELASTICSEARCH_URL setting to skip those tests
|
| 75 |
+
del os.environ["ELASTICSEARCH_URL"]
|
| 76 |
+
|
| 77 |
+
if args.emailuser:
|
| 78 |
+
os.environ["USE_EMAIL_USER_MODEL"] = "1"
|
| 79 |
+
|
| 80 |
+
if args.disabletimezone:
|
| 81 |
+
os.environ["DISABLE_TIMEZONE"] = "1"
|
| 82 |
+
|
| 83 |
+
if args.bench:
|
| 84 |
+
benchmarks = [
|
| 85 |
+
"wagtail.admin.tests.benches",
|
| 86 |
+
]
|
| 87 |
+
|
| 88 |
+
argv = [sys.argv[0], "test", "-v2"] + benchmarks + rest
|
| 89 |
+
else:
|
| 90 |
+
argv = [sys.argv[0], "test"] + rest
|
| 91 |
+
|
| 92 |
+
try:
|
| 93 |
+
execute_from_command_line(argv)
|
| 94 |
+
finally:
|
| 95 |
+
from wagtail.test.settings import MEDIA_ROOT, STATIC_ROOT
|
| 96 |
+
|
| 97 |
+
shutil.rmtree(STATIC_ROOT, ignore_errors=True)
|
| 98 |
+
shutil.rmtree(MEDIA_ROOT, ignore_errors=True)
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
if __name__ == "__main__":
|
| 102 |
+
runtests()
|
testbed/wagtail__wagtail/setup.cfg
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[bdist_wheel]
|
| 2 |
+
python-tag = py3
|
| 3 |
+
|
| 4 |
+
[flake8]
|
| 5 |
+
# D100: Missing docstring in public module
|
| 6 |
+
# D101: Missing docstring in public class
|
| 7 |
+
# D102: Missing docstring in public method
|
| 8 |
+
# D103: Missing docstring in public function
|
| 9 |
+
# D105: Missing docstring in magic method
|
| 10 |
+
# W503: line break before binary operator (superseded by W504 line break after binary operator)
|
| 11 |
+
# N806: Variable in function should be lowercase
|
| 12 |
+
# E203: Whitespace before ':'
|
| 13 |
+
# E501: Line too long
|
| 14 |
+
ignore = D100,D101,D102,D103,D105,W503,N806,E203,E501
|
| 15 |
+
exclude = wagtail/project_template/*,node_modules,venv,.venv
|
| 16 |
+
max-line-length = 88
|
| 17 |
+
|
| 18 |
+
[doc8]
|
| 19 |
+
ignore = D001
|
| 20 |
+
ignore-path = _build,docs/_build
|
| 21 |
+
|
| 22 |
+
[isort]
|
| 23 |
+
profile = black
|
| 24 |
+
skip=migrations,project_template,node_modules,.git,__pycache__,LC_MESSAGES,venv,.venv,.tox
|
| 25 |
+
blocked_extensions=rst,html,js,svg,txt,css,scss,png,snap,ts,tsx
|
| 26 |
+
known_first_party=wagtail
|
| 27 |
+
default_section=THIRDPARTY
|
| 28 |
+
|
| 29 |
+
[tool:pytest]
|
| 30 |
+
django_find_project = false
|
| 31 |
+
python_files=test_*.py
|
| 32 |
+
testpaths=wagtail
|
testbed/wagtail__wagtail/setup.py
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
|
| 3 |
+
from wagtail import __version__
|
| 4 |
+
from wagtail.utils.setup import assets, check_bdist_egg, sdist
|
| 5 |
+
|
| 6 |
+
try:
|
| 7 |
+
from setuptools import find_packages, setup
|
| 8 |
+
except ImportError:
|
| 9 |
+
from distutils.core import setup
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
# Hack to prevent "TypeError: 'NoneType' object is not callable" error
|
| 13 |
+
# in multiprocessing/util.py _exit_function when setup.py exits
|
| 14 |
+
# (see http://www.eby-sarna.com/pipermail/peak/2010-May/003357.html)
|
| 15 |
+
try:
|
| 16 |
+
import multiprocessing # noqa
|
| 17 |
+
except ImportError:
|
| 18 |
+
pass
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
install_requires = [
|
| 22 |
+
"Django>=3.2,<4.2",
|
| 23 |
+
"django-modelcluster>=6.0,<7.0",
|
| 24 |
+
"django-permissionedforms>=0.1,<1.0",
|
| 25 |
+
"django-taggit>=2.0,<4.0",
|
| 26 |
+
"django-treebeard>=4.5.1,<5.0",
|
| 27 |
+
"djangorestframework>=3.11.1,<4.0",
|
| 28 |
+
"django-filter>=2.2,<23",
|
| 29 |
+
"draftjs_exporter>=2.1.5,<3.0",
|
| 30 |
+
"Pillow>=4.0.0,<10.0.0",
|
| 31 |
+
"beautifulsoup4>=4.8,<4.12",
|
| 32 |
+
"html5lib>=0.999,<2",
|
| 33 |
+
"Willow>=1.4,<1.5",
|
| 34 |
+
"requests>=2.11.1,<3.0",
|
| 35 |
+
"l18n>=2018.5",
|
| 36 |
+
"openpyxl>=3.0.10,<4.0",
|
| 37 |
+
"anyascii>=0.1.5",
|
| 38 |
+
"telepath>=0.1.1,<1",
|
| 39 |
+
]
|
| 40 |
+
|
| 41 |
+
# Testing dependencies
|
| 42 |
+
testing_extras = [
|
| 43 |
+
# Required for running the tests
|
| 44 |
+
"python-dateutil>=2.7",
|
| 45 |
+
"pytz>=2014.7",
|
| 46 |
+
"elasticsearch>=5.0,<6.0",
|
| 47 |
+
"Jinja2>=3.0,<3.2",
|
| 48 |
+
"boto3>=1.16,<1.17",
|
| 49 |
+
"freezegun>=0.3.8",
|
| 50 |
+
"azure-mgmt-cdn>=12.0,<13.0",
|
| 51 |
+
"azure-mgmt-frontdoor>=1.0,<1.1",
|
| 52 |
+
"django-pattern-library>=0.7,<0.8",
|
| 53 |
+
# For coverage and PEP8 linting
|
| 54 |
+
"coverage>=3.7.0",
|
| 55 |
+
"black==22.3.0",
|
| 56 |
+
"flake8>=3.6.0",
|
| 57 |
+
"isort==5.6.4", # leave this pinned - it tends to change rules between patch releases
|
| 58 |
+
"flake8-blind-except==0.1.1",
|
| 59 |
+
"flake8-comprehensions==3.8.0",
|
| 60 |
+
"flake8-print==5.0.0",
|
| 61 |
+
"doc8==0.8.1",
|
| 62 |
+
"flake8-assertive==2.0.0",
|
| 63 |
+
"semgrep",
|
| 64 |
+
# For templates linting
|
| 65 |
+
"curlylint==0.13.1",
|
| 66 |
+
# For template indenting
|
| 67 |
+
"djhtml==1.4.13",
|
| 68 |
+
# for validating string formats in .po translation files
|
| 69 |
+
"polib>=1.1,<2.0",
|
| 70 |
+
# For streamfield migration toolkit
|
| 71 |
+
"wagtail-factories>=4.0,<5",
|
| 72 |
+
]
|
| 73 |
+
|
| 74 |
+
# Documentation dependencies
|
| 75 |
+
documentation_extras = [
|
| 76 |
+
"pyenchant>=3.1.1,<4",
|
| 77 |
+
"sphinxcontrib-spelling>=5.4.0,<6",
|
| 78 |
+
"Sphinx>=1.5.2",
|
| 79 |
+
"sphinx-autobuild>=0.6.0",
|
| 80 |
+
"sphinx-wagtail-theme==5.3.2",
|
| 81 |
+
"myst_parser==0.18.1",
|
| 82 |
+
"sphinx_copybutton>=0.5,<1.0",
|
| 83 |
+
]
|
| 84 |
+
|
| 85 |
+
setup(
|
| 86 |
+
name="wagtail",
|
| 87 |
+
version=__version__,
|
| 88 |
+
description="A Django content management system.",
|
| 89 |
+
author="Wagtail core team + contributors",
|
| 90 |
+
author_email="hello@wagtail.org", # For support queries, please see https://docs.wagtail.org/en/stable/support.html
|
| 91 |
+
url="https://wagtail.org/",
|
| 92 |
+
project_urls={
|
| 93 |
+
"Documentation": "https://docs.wagtail.org",
|
| 94 |
+
"Source": "https://github.com/wagtail/wagtail",
|
| 95 |
+
},
|
| 96 |
+
packages=find_packages(),
|
| 97 |
+
include_package_data=True,
|
| 98 |
+
license="BSD",
|
| 99 |
+
long_description="Wagtail is an open source content management \
|
| 100 |
+
system built on Django, with a strong community and commercial support. \
|
| 101 |
+
It’s focused on user experience, and offers precise control for \
|
| 102 |
+
designers and developers.\n\n\
|
| 103 |
+
For more details, see https://wagtail.org, https://docs.wagtail.org and \
|
| 104 |
+
https://github.com/wagtail/wagtail/.",
|
| 105 |
+
classifiers=[
|
| 106 |
+
"Development Status :: 5 - Production/Stable",
|
| 107 |
+
"Environment :: Web Environment",
|
| 108 |
+
"Intended Audience :: Developers",
|
| 109 |
+
"License :: OSI Approved :: BSD License",
|
| 110 |
+
"Operating System :: OS Independent",
|
| 111 |
+
"Programming Language :: Python",
|
| 112 |
+
"Programming Language :: Python :: 3",
|
| 113 |
+
"Programming Language :: Python :: 3.7",
|
| 114 |
+
"Programming Language :: Python :: 3.8",
|
| 115 |
+
"Programming Language :: Python :: 3.9",
|
| 116 |
+
"Programming Language :: Python :: 3.10",
|
| 117 |
+
"Programming Language :: Python :: 3.11",
|
| 118 |
+
"Framework :: Django",
|
| 119 |
+
"Framework :: Django :: 3.2",
|
| 120 |
+
"Framework :: Django :: 4.0",
|
| 121 |
+
"Framework :: Django :: 4.1",
|
| 122 |
+
"Framework :: Wagtail",
|
| 123 |
+
"Topic :: Internet :: WWW/HTTP :: Site Management",
|
| 124 |
+
],
|
| 125 |
+
python_requires=">=3.7",
|
| 126 |
+
install_requires=install_requires,
|
| 127 |
+
extras_require={"testing": testing_extras, "docs": documentation_extras},
|
| 128 |
+
entry_points="""
|
| 129 |
+
[console_scripts]
|
| 130 |
+
wagtail=wagtail.bin.wagtail:main
|
| 131 |
+
""",
|
| 132 |
+
zip_safe=False,
|
| 133 |
+
cmdclass={
|
| 134 |
+
"sdist": sdist,
|
| 135 |
+
"bdist_egg": check_bdist_egg,
|
| 136 |
+
"assets": assets,
|
| 137 |
+
},
|
| 138 |
+
)
|
testbed/wagtail__wagtail/tailwind.config.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const baseConfig = require('./client/tailwind.config');
|
| 2 |
+
|
| 3 |
+
/**
|
| 4 |
+
* Tailwind config file for Wagtail itself.
|
| 5 |
+
*/
|
| 6 |
+
module.exports = {
|
| 7 |
+
presets: [baseConfig],
|
| 8 |
+
content: [
|
| 9 |
+
'./wagtail/**/*.{py,html,ts,tsx}',
|
| 10 |
+
'./wagtail/**/static_src/**/*.js',
|
| 11 |
+
'./client/**/*.{js,ts,tsx,mdx}',
|
| 12 |
+
'./docs/**/*.{md,rst}',
|
| 13 |
+
],
|
| 14 |
+
corePlugins: {
|
| 15 |
+
// Risk of clashing with existing styles.
|
| 16 |
+
preflight: false,
|
| 17 |
+
},
|
| 18 |
+
};
|
testbed/wagtail__wagtail/tox.ini
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[tox]
|
| 2 |
+
skipsdist = True
|
| 3 |
+
usedevelop = True
|
| 4 |
+
|
| 5 |
+
envlist = py{37,38,39,310,311}-dj{32,40,41,41stable,main}-{sqlite,postgres,mysql,mssql}-{elasticsearch7,elasticsearch6,elasticsearch5,noelasticsearch}-{customuser,emailuser}-{tz,notz},
|
| 6 |
+
|
| 7 |
+
[testenv]
|
| 8 |
+
install_command = pip install -e ".[testing]" -U {opts} {packages}
|
| 9 |
+
commands =
|
| 10 |
+
elasticsearch5: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch5
|
| 11 |
+
elasticsearch6: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch6
|
| 12 |
+
elasticsearch7: coverage run runtests.py wagtail.search wagtail.documents wagtail.images --elasticsearch7
|
| 13 |
+
noelasticsearch: coverage run runtests.py {posargs}
|
| 14 |
+
|
| 15 |
+
basepython =
|
| 16 |
+
py37: python3.7
|
| 17 |
+
py38: python3.8
|
| 18 |
+
py39: python3.9
|
| 19 |
+
py310: python3.10
|
| 20 |
+
py311: python3.11
|
| 21 |
+
|
| 22 |
+
deps =
|
| 23 |
+
django-sendfile==0.3.6
|
| 24 |
+
Embedly
|
| 25 |
+
|
| 26 |
+
dj32: Django~=3.2.0
|
| 27 |
+
dj40: Django~=4.0.0
|
| 28 |
+
dj41: Django~=4.1.0
|
| 29 |
+
dj41stable: git+https://github.com/django/django.git@stable/4.1.x#egg=Django
|
| 30 |
+
djmain: git+https://github.com/django/django.git@main#egg=Django
|
| 31 |
+
|
| 32 |
+
postgres: psycopg2>=2.6
|
| 33 |
+
mysql: mysqlclient>=1.4,<2
|
| 34 |
+
elasticsearch5: elasticsearch>=5,<6
|
| 35 |
+
elasticsearch5: certifi
|
| 36 |
+
elasticsearch6: elasticsearch>=6.4.0,<7
|
| 37 |
+
elasticsearch6: certifi
|
| 38 |
+
elasticsearch7: elasticsearch>=7,<8
|
| 39 |
+
elasticsearch7: certifi
|
| 40 |
+
|
| 41 |
+
setenv =
|
| 42 |
+
postgres: DATABASE_ENGINE=django.db.backends.postgresql
|
| 43 |
+
|
| 44 |
+
mysql: DATABASE_ENGINE=django.db.backends.mysql
|
| 45 |
+
mysql: DATABASE_HOST=localhost
|
| 46 |
+
mysql: DATABASE_USER=root
|
| 47 |
+
|
| 48 |
+
sqlite: DATABASE_NAME=wagtail.db
|
| 49 |
+
|
| 50 |
+
emailuser: USE_EMAIL_USER_MODEL=yes
|
| 51 |
+
notz: DISABLE_TIMEZONE=yes
|
| 52 |
+
|
| 53 |
+
# Specific for Appveyor, see:
|
| 54 |
+
# https://www.appveyor.com/docs/services-databases/#sql-server-2016
|
| 55 |
+
mssql: DATABASE_ENGINE=sql_server.pyodbc
|
| 56 |
+
mssql: DATABASE_HOST=(local)\SQL2016
|
| 57 |
+
mssql: DATABASE_NAME=master
|
| 58 |
+
mssql: DATABASE_USER=sa
|
| 59 |
+
mssql: DATABASE_PASSWORD=Password12!
|
| 60 |
+
|
| 61 |
+
[testenv:flake8]
|
| 62 |
+
basepython=python3.7
|
| 63 |
+
deps=flake8>=3.6.0
|
| 64 |
+
commands=flake8
|
testbed/wagtail__wagtail/tsconfig.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"compilerOptions": {
|
| 3 |
+
"allowJs": true,
|
| 4 |
+
"downlevelIteration": true,
|
| 5 |
+
"esModuleInterop": true,
|
| 6 |
+
"forceConsistentCasingInFileNames": true,
|
| 7 |
+
"jsx": "react",
|
| 8 |
+
"lib": ["DOM", "DOM.iterable"],
|
| 9 |
+
"moduleResolution": "node",
|
| 10 |
+
"noImplicitAny": false, // TODO: Enable once all existing code is typed
|
| 11 |
+
"noUnusedLocals": true,
|
| 12 |
+
"noUnusedParameters": true,
|
| 13 |
+
"strictNullChecks": true,
|
| 14 |
+
"strictPropertyInitialization": false,
|
| 15 |
+
"target": "ES2021" // Since lowest browser support is for Safari 14
|
| 16 |
+
},
|
| 17 |
+
"files": [
|
| 18 |
+
"client/src/index.ts",
|
| 19 |
+
"client/src/custom.d.ts",
|
| 20 |
+
"client/storybook/stories.d.ts"
|
| 21 |
+
],
|
| 22 |
+
"include": ["src", "wagtail"],
|
| 23 |
+
"exclude": [
|
| 24 |
+
"node_modules",
|
| 25 |
+
"static",
|
| 26 |
+
// Files with template syntax.
|
| 27 |
+
"wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.js"
|
| 28 |
+
]
|
| 29 |
+
}
|
testbed/wagtail__wagtail/wagtail/core/whitelist.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from warnings import warn
|
| 2 |
+
|
| 3 |
+
from wagtail.utils.deprecation import RemovedInWagtail50Warning
|
| 4 |
+
from wagtail.whitelist import * # noqa
|
| 5 |
+
|
| 6 |
+
warn(
|
| 7 |
+
"Importing from wagtail.core.whitelist is deprecated. "
|
| 8 |
+
"Use wagtail.whitelist instead. "
|
| 9 |
+
"See https://docs.wagtail.org/en/stable/releases/3.0.html#changes-to-module-paths",
|
| 10 |
+
category=RemovedInWagtail50Warning,
|
| 11 |
+
stacklevel=2,
|
| 12 |
+
)
|
testbed/wagtail__wagtail/wagtail/signal_handlers.py
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import logging
|
| 2 |
+
from contextlib import contextmanager
|
| 3 |
+
|
| 4 |
+
from asgiref.local import Local
|
| 5 |
+
from django.core.cache import cache
|
| 6 |
+
from django.db import transaction
|
| 7 |
+
from django.db.models.signals import (
|
| 8 |
+
post_delete,
|
| 9 |
+
post_migrate,
|
| 10 |
+
post_save,
|
| 11 |
+
pre_delete,
|
| 12 |
+
pre_migrate,
|
| 13 |
+
)
|
| 14 |
+
from modelcluster.fields import ParentalKey
|
| 15 |
+
|
| 16 |
+
from wagtail.coreutils import get_locales_display_names
|
| 17 |
+
from wagtail.models import Locale, Page, ReferenceIndex, Site
|
| 18 |
+
|
| 19 |
+
logger = logging.getLogger("wagtail")
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
# Clear the wagtail_site_root_paths from the cache whenever Site records are updated.
|
| 23 |
+
def post_save_site_signal_handler(instance, update_fields=None, **kwargs):
|
| 24 |
+
cache.delete("wagtail_site_root_paths")
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def post_delete_site_signal_handler(instance, **kwargs):
|
| 28 |
+
cache.delete("wagtail_site_root_paths")
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def pre_delete_page_unpublish(sender, instance, **kwargs):
|
| 32 |
+
# Make sure pages are unpublished before deleting
|
| 33 |
+
if instance.live:
|
| 34 |
+
# Don't bother to save, this page is just about to be deleted!
|
| 35 |
+
instance.unpublish(commit=False, log_action=None)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def post_delete_page_log_deletion(sender, instance, **kwargs):
|
| 39 |
+
logger.info('Page deleted: "%s" id=%d', instance.title, instance.id)
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def reset_locales_display_names_cache(sender, instance, **kwargs):
|
| 43 |
+
get_locales_display_names.cache_clear()
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
reference_index_auto_update_disabled = Local()
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
@contextmanager
|
| 50 |
+
def disable_reference_index_auto_update():
|
| 51 |
+
"""
|
| 52 |
+
A context manager that can be used to temporarily disable the reference index auto-update signal handlers.
|
| 53 |
+
|
| 54 |
+
For example:
|
| 55 |
+
|
| 56 |
+
with disable_reference_index_auto_update():
|
| 57 |
+
my_instance.save() # Reference index will not be updated by this save
|
| 58 |
+
"""
|
| 59 |
+
try:
|
| 60 |
+
reference_index_auto_update_disabled.value = True
|
| 61 |
+
yield
|
| 62 |
+
finally:
|
| 63 |
+
del reference_index_auto_update_disabled.value
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def update_reference_index_on_save(instance, **kwargs):
|
| 67 |
+
# Don't populate reference index while loading fixtures as referenced objects may not be populated yet
|
| 68 |
+
if kwargs.get("raw", False):
|
| 69 |
+
return
|
| 70 |
+
|
| 71 |
+
if getattr(reference_index_auto_update_disabled, "value", False):
|
| 72 |
+
return
|
| 73 |
+
|
| 74 |
+
# If the model is a child model, find the parent instance and index that instead
|
| 75 |
+
while True:
|
| 76 |
+
parental_keys = list(
|
| 77 |
+
filter(
|
| 78 |
+
lambda field: isinstance(field, ParentalKey),
|
| 79 |
+
instance._meta.get_fields(),
|
| 80 |
+
)
|
| 81 |
+
)
|
| 82 |
+
if not parental_keys:
|
| 83 |
+
break
|
| 84 |
+
|
| 85 |
+
instance = getattr(instance, parental_keys[0].name)
|
| 86 |
+
if instance is None:
|
| 87 |
+
# parent is null, so there is no valid object to record references against
|
| 88 |
+
return
|
| 89 |
+
|
| 90 |
+
if ReferenceIndex.model_is_indexable(type(instance)):
|
| 91 |
+
with transaction.atomic():
|
| 92 |
+
ReferenceIndex.create_or_update_for_object(instance)
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
def remove_reference_index_on_delete(instance, **kwargs):
|
| 96 |
+
if getattr(reference_index_auto_update_disabled, "value", False):
|
| 97 |
+
return
|
| 98 |
+
|
| 99 |
+
with transaction.atomic():
|
| 100 |
+
ReferenceIndex.remove_for_object(instance)
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
def connect_reference_index_signal_handlers(**kwargs):
|
| 104 |
+
post_save.connect(update_reference_index_on_save)
|
| 105 |
+
post_delete.connect(remove_reference_index_on_delete)
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
def disconnect_reference_index_signal_handlers(**kwargs):
|
| 109 |
+
post_save.disconnect(update_reference_index_on_save)
|
| 110 |
+
post_delete.disconnect(remove_reference_index_on_delete)
|
| 111 |
+
|
| 112 |
+
|
| 113 |
+
def register_signal_handlers():
|
| 114 |
+
post_save.connect(post_save_site_signal_handler, sender=Site)
|
| 115 |
+
post_delete.connect(post_delete_site_signal_handler, sender=Site)
|
| 116 |
+
|
| 117 |
+
pre_delete.connect(pre_delete_page_unpublish, sender=Page)
|
| 118 |
+
post_delete.connect(post_delete_page_log_deletion, sender=Page)
|
| 119 |
+
|
| 120 |
+
post_save.connect(reset_locales_display_names_cache, sender=Locale)
|
| 121 |
+
post_delete.connect(reset_locales_display_names_cache, sender=Locale)
|
| 122 |
+
|
| 123 |
+
# Reference index signal handlers
|
| 124 |
+
connect_reference_index_signal_handlers()
|
| 125 |
+
|
| 126 |
+
# Disconnect reference index signals while migrations are running
|
| 127 |
+
# (we don't want to log references in migrations as the ReferenceIndex model might not exist)
|
| 128 |
+
pre_migrate.connect(disconnect_reference_index_signal_handlers)
|
| 129 |
+
post_migrate.connect(connect_reference_index_signal_handlers)
|
testbed/wagtail__wagtail/wagtail/views.py
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.conf import settings
|
| 2 |
+
from django.http import Http404, HttpResponse
|
| 3 |
+
from django.shortcuts import get_object_or_404, redirect
|
| 4 |
+
from django.urls import reverse
|
| 5 |
+
from django.utils.http import url_has_allowed_host_and_scheme
|
| 6 |
+
|
| 7 |
+
from wagtail import hooks
|
| 8 |
+
from wagtail.forms import PasswordViewRestrictionForm
|
| 9 |
+
from wagtail.models import Page, PageViewRestriction, Site
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def serve(request, path):
|
| 13 |
+
# we need a valid Site object corresponding to this request in order to proceed
|
| 14 |
+
site = Site.find_for_request(request)
|
| 15 |
+
if not site:
|
| 16 |
+
raise Http404
|
| 17 |
+
|
| 18 |
+
path_components = [component for component in path.split("/") if component]
|
| 19 |
+
page, args, kwargs = site.root_page.localized.specific.route(
|
| 20 |
+
request, path_components
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
+
for fn in hooks.get_hooks("before_serve_page"):
|
| 24 |
+
result = fn(page, request, args, kwargs)
|
| 25 |
+
if isinstance(result, HttpResponse):
|
| 26 |
+
return result
|
| 27 |
+
|
| 28 |
+
return page.serve(request, *args, **kwargs)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def authenticate_with_password(request, page_view_restriction_id, page_id):
|
| 32 |
+
"""
|
| 33 |
+
Handle a submission of PasswordViewRestrictionForm to grant view access over a
|
| 34 |
+
subtree that is protected by a PageViewRestriction
|
| 35 |
+
"""
|
| 36 |
+
restriction = get_object_or_404(PageViewRestriction, id=page_view_restriction_id)
|
| 37 |
+
page = get_object_or_404(Page, id=page_id).specific
|
| 38 |
+
|
| 39 |
+
if request.method == "POST":
|
| 40 |
+
form = PasswordViewRestrictionForm(request.POST, instance=restriction)
|
| 41 |
+
if form.is_valid():
|
| 42 |
+
return_url = form.cleaned_data["return_url"]
|
| 43 |
+
|
| 44 |
+
if not url_has_allowed_host_and_scheme(
|
| 45 |
+
return_url, request.get_host(), request.is_secure()
|
| 46 |
+
):
|
| 47 |
+
return_url = settings.LOGIN_REDIRECT_URL
|
| 48 |
+
|
| 49 |
+
restriction.mark_as_passed(request)
|
| 50 |
+
return redirect(return_url)
|
| 51 |
+
else:
|
| 52 |
+
form = PasswordViewRestrictionForm(instance=restriction)
|
| 53 |
+
|
| 54 |
+
action_url = reverse(
|
| 55 |
+
"wagtailcore_authenticate_with_password", args=[restriction.id, page.id]
|
| 56 |
+
)
|
| 57 |
+
return page.serve_password_required_response(request, form, action_url)
|
testbed/wagtail__wagtail/wagtail/wagtail_hooks.py
ADDED
|
@@ -0,0 +1,516 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from django.conf import settings
|
| 2 |
+
from django.contrib.auth.models import Permission
|
| 3 |
+
from django.contrib.auth.views import redirect_to_login
|
| 4 |
+
from django.db import models
|
| 5 |
+
from django.urls import reverse
|
| 6 |
+
from django.utils.text import capfirst
|
| 7 |
+
from django.utils.translation import gettext_lazy as _
|
| 8 |
+
from django.utils.translation import ngettext
|
| 9 |
+
|
| 10 |
+
from wagtail import hooks
|
| 11 |
+
from wagtail.coreutils import get_content_languages
|
| 12 |
+
from wagtail.log_actions import LogFormatter
|
| 13 |
+
from wagtail.models import ModelLogEntry, Page, PageLogEntry, PageViewRestriction
|
| 14 |
+
from wagtail.rich_text.pages import PageLinkHandler
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def require_wagtail_login(next):
|
| 18 |
+
login_url = getattr(
|
| 19 |
+
settings, "WAGTAIL_FRONTEND_LOGIN_URL", reverse("wagtailcore_login")
|
| 20 |
+
)
|
| 21 |
+
return redirect_to_login(next, login_url)
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
@hooks.register("before_serve_page")
|
| 25 |
+
def check_view_restrictions(page, request, serve_args, serve_kwargs):
|
| 26 |
+
"""
|
| 27 |
+
Check whether there are any view restrictions on this page which are
|
| 28 |
+
not fulfilled by the given request object. If there are, return an
|
| 29 |
+
HttpResponse that will notify the user of that restriction (and possibly
|
| 30 |
+
include a password / login form that will allow them to proceed). If
|
| 31 |
+
there are no such restrictions, return None
|
| 32 |
+
"""
|
| 33 |
+
for restriction in page.get_view_restrictions():
|
| 34 |
+
if not restriction.accept_request(request):
|
| 35 |
+
if restriction.restriction_type == PageViewRestriction.PASSWORD:
|
| 36 |
+
from wagtail.forms import PasswordViewRestrictionForm
|
| 37 |
+
|
| 38 |
+
form = PasswordViewRestrictionForm(
|
| 39 |
+
instance=restriction,
|
| 40 |
+
initial={"return_url": request.get_full_path()},
|
| 41 |
+
)
|
| 42 |
+
action_url = reverse(
|
| 43 |
+
"wagtailcore_authenticate_with_password",
|
| 44 |
+
args=[restriction.id, page.id],
|
| 45 |
+
)
|
| 46 |
+
return page.serve_password_required_response(request, form, action_url)
|
| 47 |
+
|
| 48 |
+
elif restriction.restriction_type in [
|
| 49 |
+
PageViewRestriction.LOGIN,
|
| 50 |
+
PageViewRestriction.GROUPS,
|
| 51 |
+
]:
|
| 52 |
+
return require_wagtail_login(next=request.get_full_path())
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
@hooks.register("register_rich_text_features")
|
| 56 |
+
def register_core_features(features):
|
| 57 |
+
features.default_features.append("hr")
|
| 58 |
+
|
| 59 |
+
features.default_features.append("link")
|
| 60 |
+
features.register_link_type(PageLinkHandler)
|
| 61 |
+
|
| 62 |
+
features.default_features.append("bold")
|
| 63 |
+
|
| 64 |
+
features.default_features.append("italic")
|
| 65 |
+
|
| 66 |
+
features.default_features.extend(["h2", "h3", "h4"])
|
| 67 |
+
|
| 68 |
+
features.default_features.append("ol")
|
| 69 |
+
|
| 70 |
+
features.default_features.append("ul")
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
if getattr(settings, "WAGTAIL_WORKFLOW_ENABLED", True):
|
| 74 |
+
|
| 75 |
+
@hooks.register("register_permissions")
|
| 76 |
+
def register_workflow_permissions():
|
| 77 |
+
return Permission.objects.filter(
|
| 78 |
+
content_type__app_label="wagtailcore",
|
| 79 |
+
codename__in=["add_workflow", "change_workflow", "delete_workflow"],
|
| 80 |
+
)
|
| 81 |
+
|
| 82 |
+
@hooks.register("register_permissions")
|
| 83 |
+
def register_task_permissions():
|
| 84 |
+
return Permission.objects.filter(
|
| 85 |
+
content_type__app_label="wagtailcore",
|
| 86 |
+
codename__in=["add_task", "change_task", "delete_task"],
|
| 87 |
+
)
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
@hooks.register("describe_collection_contents")
|
| 91 |
+
def describe_collection_children(collection):
|
| 92 |
+
descendant_count = collection.get_descendants().count()
|
| 93 |
+
if descendant_count:
|
| 94 |
+
url = reverse("wagtailadmin_collections:index")
|
| 95 |
+
return {
|
| 96 |
+
"count": descendant_count,
|
| 97 |
+
"count_text": ngettext(
|
| 98 |
+
"%(count)s descendant collection",
|
| 99 |
+
"%(count)s descendant collections",
|
| 100 |
+
descendant_count,
|
| 101 |
+
)
|
| 102 |
+
% {"count": descendant_count},
|
| 103 |
+
"url": url,
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
@hooks.register("register_log_actions")
|
| 108 |
+
def register_core_log_actions(actions):
|
| 109 |
+
actions.register_model(models.Model, ModelLogEntry)
|
| 110 |
+
actions.register_model(Page, PageLogEntry)
|
| 111 |
+
|
| 112 |
+
actions.register_action("wagtail.create", _("Create"), _("Created"))
|
| 113 |
+
actions.register_action("wagtail.edit", _("Edit"), _("Edited"))
|
| 114 |
+
actions.register_action("wagtail.delete", _("Delete"), _("Deleted"))
|
| 115 |
+
actions.register_action("wagtail.publish", _("Publish"), _("Published"))
|
| 116 |
+
actions.register_action(
|
| 117 |
+
"wagtail.publish.scheduled",
|
| 118 |
+
_("Publish scheduled draft"),
|
| 119 |
+
_("Published scheduled draft"),
|
| 120 |
+
)
|
| 121 |
+
actions.register_action("wagtail.unpublish", _("Unpublish"), _("Unpublished"))
|
| 122 |
+
actions.register_action(
|
| 123 |
+
"wagtail.unpublish.scheduled",
|
| 124 |
+
_("Unpublish scheduled draft"),
|
| 125 |
+
_("Unpublished scheduled draft"),
|
| 126 |
+
)
|
| 127 |
+
actions.register_action("wagtail.lock", _("Lock"), _("Locked"))
|
| 128 |
+
actions.register_action("wagtail.unlock", _("Unlock"), _("Unlocked"))
|
| 129 |
+
actions.register_action("wagtail.moderation.approve", _("Approve"), _("Approved"))
|
| 130 |
+
actions.register_action("wagtail.moderation.reject", _("Reject"), _("Rejected"))
|
| 131 |
+
|
| 132 |
+
@actions.register_action("wagtail.rename")
|
| 133 |
+
class RenameActionFormatter(LogFormatter):
|
| 134 |
+
label = _("Rename")
|
| 135 |
+
|
| 136 |
+
def format_message(self, log_entry):
|
| 137 |
+
try:
|
| 138 |
+
return _("Renamed from '%(old)s' to '%(new)s'") % {
|
| 139 |
+
"old": log_entry.data["title"]["old"],
|
| 140 |
+
"new": log_entry.data["title"]["new"],
|
| 141 |
+
}
|
| 142 |
+
except KeyError:
|
| 143 |
+
return _("Renamed")
|
| 144 |
+
|
| 145 |
+
@actions.register_action("wagtail.revert")
|
| 146 |
+
class RevertActionFormatter(LogFormatter):
|
| 147 |
+
label = _("Revert")
|
| 148 |
+
|
| 149 |
+
def format_message(self, log_entry):
|
| 150 |
+
try:
|
| 151 |
+
return _(
|
| 152 |
+
"Reverted to previous revision with id %(revision_id)s from %(created_at)s"
|
| 153 |
+
) % {
|
| 154 |
+
"revision_id": log_entry.data["revision"]["id"],
|
| 155 |
+
"created_at": log_entry.data["revision"]["created"],
|
| 156 |
+
}
|
| 157 |
+
except KeyError:
|
| 158 |
+
return _("Reverted to previous revision")
|
| 159 |
+
|
| 160 |
+
@actions.register_action("wagtail.copy")
|
| 161 |
+
class CopyActionFormatter(LogFormatter):
|
| 162 |
+
label = _("Copy")
|
| 163 |
+
|
| 164 |
+
def format_message(self, log_entry):
|
| 165 |
+
try:
|
| 166 |
+
return _("Copied from %(title)s") % {
|
| 167 |
+
"title": log_entry.data["source"]["title"],
|
| 168 |
+
}
|
| 169 |
+
except KeyError:
|
| 170 |
+
return _("Copied")
|
| 171 |
+
|
| 172 |
+
@actions.register_action("wagtail.copy_for_translation")
|
| 173 |
+
class CopyForTranslationActionFormatter(LogFormatter):
|
| 174 |
+
label = _("Copy for translation")
|
| 175 |
+
|
| 176 |
+
def format_message(self, log_entry):
|
| 177 |
+
try:
|
| 178 |
+
return _("Copied for translation from %(title)s (%(locale)s)") % {
|
| 179 |
+
"title": log_entry.data["source"]["title"],
|
| 180 |
+
"locale": get_content_languages().get(
|
| 181 |
+
log_entry.data["source_locale"]["language_code"]
|
| 182 |
+
)
|
| 183 |
+
or "",
|
| 184 |
+
}
|
| 185 |
+
except KeyError:
|
| 186 |
+
return _("Copied for translation")
|
| 187 |
+
|
| 188 |
+
@actions.register_action("wagtail.create_alias")
|
| 189 |
+
class CreateAliasActionFormatter(LogFormatter):
|
| 190 |
+
label = _("Create alias")
|
| 191 |
+
|
| 192 |
+
def format_message(self, log_entry):
|
| 193 |
+
try:
|
| 194 |
+
return _("Created an alias of %(title)s") % {
|
| 195 |
+
"title": log_entry.data["source"]["title"],
|
| 196 |
+
}
|
| 197 |
+
except KeyError:
|
| 198 |
+
return _("Created an alias")
|
| 199 |
+
|
| 200 |
+
@actions.register_action("wagtail.convert_alias")
|
| 201 |
+
class ConvertAliasActionFormatter(LogFormatter):
|
| 202 |
+
label = _("Convert alias into ordinary page")
|
| 203 |
+
|
| 204 |
+
def format_message(self, log_entry):
|
| 205 |
+
try:
|
| 206 |
+
return _("Converted the alias '%(title)s' into an ordinary page") % {
|
| 207 |
+
"title": log_entry.data["page"]["title"],
|
| 208 |
+
}
|
| 209 |
+
except KeyError:
|
| 210 |
+
return _("Converted an alias into an ordinary page")
|
| 211 |
+
|
| 212 |
+
@actions.register_action("wagtail.move")
|
| 213 |
+
class MoveActionFormatter(LogFormatter):
|
| 214 |
+
label = _("Move")
|
| 215 |
+
|
| 216 |
+
def format_message(self, log_entry):
|
| 217 |
+
try:
|
| 218 |
+
return _("Moved from '%(old_parent)s' to '%(new_parent)s'") % {
|
| 219 |
+
"old_parent": log_entry.data["source"]["title"],
|
| 220 |
+
"new_parent": log_entry.data["destination"]["title"],
|
| 221 |
+
}
|
| 222 |
+
except KeyError:
|
| 223 |
+
return _("Moved")
|
| 224 |
+
|
| 225 |
+
@actions.register_action("wagtail.reorder")
|
| 226 |
+
class ReorderActionFormatter(LogFormatter):
|
| 227 |
+
label = _("Reorder")
|
| 228 |
+
|
| 229 |
+
def format_message(self, log_entry):
|
| 230 |
+
try:
|
| 231 |
+
return _("Reordered under '%(parent)s'") % {
|
| 232 |
+
"parent": log_entry.data["destination"]["title"],
|
| 233 |
+
}
|
| 234 |
+
except KeyError:
|
| 235 |
+
return _("Reordered")
|
| 236 |
+
|
| 237 |
+
@actions.register_action("wagtail.publish.schedule")
|
| 238 |
+
class SchedulePublishActionFormatter(LogFormatter):
|
| 239 |
+
label = _("Schedule publication")
|
| 240 |
+
|
| 241 |
+
def format_message(self, log_entry):
|
| 242 |
+
try:
|
| 243 |
+
if log_entry.data["revision"]["has_live_version"]:
|
| 244 |
+
return _(
|
| 245 |
+
"Revision %(revision_id)s from %(created_at)s scheduled for publishing at %(go_live_at)s."
|
| 246 |
+
) % {
|
| 247 |
+
"revision_id": log_entry.data["revision"]["id"],
|
| 248 |
+
"created_at": log_entry.data["revision"]["created"],
|
| 249 |
+
"go_live_at": log_entry.data["revision"]["go_live_at"],
|
| 250 |
+
}
|
| 251 |
+
else:
|
| 252 |
+
return _("Page scheduled for publishing at %(go_live_at)s") % {
|
| 253 |
+
"go_live_at": log_entry.data["revision"]["go_live_at"],
|
| 254 |
+
}
|
| 255 |
+
except KeyError:
|
| 256 |
+
return _("Page scheduled for publishing")
|
| 257 |
+
|
| 258 |
+
@actions.register_action("wagtail.schedule.cancel")
|
| 259 |
+
class UnschedulePublicationActionFormatter(LogFormatter):
|
| 260 |
+
label = _("Unschedule publication")
|
| 261 |
+
|
| 262 |
+
def format_message(self, log_entry):
|
| 263 |
+
try:
|
| 264 |
+
if log_entry.data["revision"]["has_live_version"]:
|
| 265 |
+
return _(
|
| 266 |
+
"Revision %(revision_id)s from %(created_at)s unscheduled from publishing at %(go_live_at)s."
|
| 267 |
+
) % {
|
| 268 |
+
"revision_id": log_entry.data["revision"]["id"],
|
| 269 |
+
"created_at": log_entry.data["revision"]["created"],
|
| 270 |
+
"go_live_at": log_entry.data["revision"]["go_live_at"],
|
| 271 |
+
}
|
| 272 |
+
else:
|
| 273 |
+
return _("Page unscheduled for publishing at %(go_live_at)s") % {
|
| 274 |
+
"go_live_at": log_entry.data["revision"]["go_live_at"],
|
| 275 |
+
}
|
| 276 |
+
except KeyError:
|
| 277 |
+
return _("Page unscheduled from publishing")
|
| 278 |
+
|
| 279 |
+
@actions.register_action("wagtail.view_restriction.create")
|
| 280 |
+
class AddViewRestrictionActionFormatter(LogFormatter):
|
| 281 |
+
label = _("Add view restrictions")
|
| 282 |
+
|
| 283 |
+
def format_message(self, log_entry):
|
| 284 |
+
try:
|
| 285 |
+
return _("Added the '%(restriction)s' view restriction") % {
|
| 286 |
+
"restriction": log_entry.data["restriction"]["title"],
|
| 287 |
+
}
|
| 288 |
+
except KeyError:
|
| 289 |
+
return _("Added view restriction")
|
| 290 |
+
|
| 291 |
+
@actions.register_action("wagtail.view_restriction.edit")
|
| 292 |
+
class EditViewRestrictionActionFormatter(LogFormatter):
|
| 293 |
+
label = _("Update view restrictions")
|
| 294 |
+
|
| 295 |
+
def format_message(self, log_entry):
|
| 296 |
+
try:
|
| 297 |
+
return _("Updated the view restriction to '%(restriction)s'") % {
|
| 298 |
+
"restriction": log_entry.data["restriction"]["title"],
|
| 299 |
+
}
|
| 300 |
+
except KeyError:
|
| 301 |
+
return _("Updated view restriction")
|
| 302 |
+
|
| 303 |
+
@actions.register_action("wagtail.view_restriction.delete")
|
| 304 |
+
class DeleteViewRestrictionActionFormatter(LogFormatter):
|
| 305 |
+
label = _("Remove view restrictions")
|
| 306 |
+
|
| 307 |
+
def format_message(self, log_entry):
|
| 308 |
+
try:
|
| 309 |
+
return _("Removed the '%(restriction)s' view restriction") % {
|
| 310 |
+
"restriction": log_entry.data["restriction"]["title"],
|
| 311 |
+
}
|
| 312 |
+
except KeyError:
|
| 313 |
+
return _("Removed view restriction")
|
| 314 |
+
|
| 315 |
+
class CommentLogFormatter(LogFormatter):
|
| 316 |
+
@staticmethod
|
| 317 |
+
def _field_label_from_content_path(model, content_path):
|
| 318 |
+
"""
|
| 319 |
+
Finds the translated field label for the given model and content path
|
| 320 |
+
|
| 321 |
+
Raises LookupError if not found
|
| 322 |
+
"""
|
| 323 |
+
field_name = content_path.split(".")[0]
|
| 324 |
+
return capfirst(model._meta.get_field(field_name).verbose_name)
|
| 325 |
+
|
| 326 |
+
@actions.register_action("wagtail.comments.create")
|
| 327 |
+
class CreateCommentActionFormatter(CommentLogFormatter):
|
| 328 |
+
label = _("Add comment")
|
| 329 |
+
|
| 330 |
+
def format_message(self, log_entry):
|
| 331 |
+
try:
|
| 332 |
+
return _('Added a comment on field %(field)s: "%(text)s"') % {
|
| 333 |
+
"field": self._field_label_from_content_path(
|
| 334 |
+
log_entry.page.specific_class,
|
| 335 |
+
log_entry.data["comment"]["contentpath"],
|
| 336 |
+
),
|
| 337 |
+
"text": log_entry.data["comment"]["text"],
|
| 338 |
+
}
|
| 339 |
+
except KeyError:
|
| 340 |
+
return _("Added a comment")
|
| 341 |
+
|
| 342 |
+
@actions.register_action("wagtail.comments.edit")
|
| 343 |
+
class EditCommentActionFormatter(CommentLogFormatter):
|
| 344 |
+
label = _("Edit comment")
|
| 345 |
+
|
| 346 |
+
def format_message(self, log_entry):
|
| 347 |
+
try:
|
| 348 |
+
return _('Edited a comment on field %(field)s: "%(text)s"') % {
|
| 349 |
+
"field": self._field_label_from_content_path(
|
| 350 |
+
log_entry.page.specific_class,
|
| 351 |
+
log_entry.data["comment"]["contentpath"],
|
| 352 |
+
),
|
| 353 |
+
"text": log_entry.data["comment"]["text"],
|
| 354 |
+
}
|
| 355 |
+
except KeyError:
|
| 356 |
+
return _("Edited a comment")
|
| 357 |
+
|
| 358 |
+
@actions.register_action("wagtail.comments.delete")
|
| 359 |
+
class DeleteCommentActionFormatter(CommentLogFormatter):
|
| 360 |
+
label = _("Delete comment")
|
| 361 |
+
|
| 362 |
+
def format_message(self, log_entry):
|
| 363 |
+
try:
|
| 364 |
+
return _('Deleted a comment on field %(field)s: "%(text)s"') % {
|
| 365 |
+
"field": self._field_label_from_content_path(
|
| 366 |
+
log_entry.page.specific_class,
|
| 367 |
+
log_entry.data["comment"]["contentpath"],
|
| 368 |
+
),
|
| 369 |
+
"text": log_entry.data["comment"]["text"],
|
| 370 |
+
}
|
| 371 |
+
except KeyError:
|
| 372 |
+
return _("Deleted a comment")
|
| 373 |
+
|
| 374 |
+
@actions.register_action("wagtail.comments.resolve")
|
| 375 |
+
class ResolveCommentActionFormatter(CommentLogFormatter):
|
| 376 |
+
label = _("Resolve comment")
|
| 377 |
+
|
| 378 |
+
def format_message(self, log_entry):
|
| 379 |
+
try:
|
| 380 |
+
return _('Resolved a comment on field %(field)s: "%(text)s"') % {
|
| 381 |
+
"field": self._field_label_from_content_path(
|
| 382 |
+
log_entry.page.specific_class,
|
| 383 |
+
log_entry.data["comment"]["contentpath"],
|
| 384 |
+
),
|
| 385 |
+
"text": log_entry.data["comment"]["text"],
|
| 386 |
+
}
|
| 387 |
+
except KeyError:
|
| 388 |
+
return _("Resolved a comment")
|
| 389 |
+
|
| 390 |
+
@actions.register_action("wagtail.comments.create_reply")
|
| 391 |
+
class CreateReplyActionFormatter(CommentLogFormatter):
|
| 392 |
+
label = _("Reply to comment")
|
| 393 |
+
|
| 394 |
+
def format_message(self, log_entry):
|
| 395 |
+
try:
|
| 396 |
+
return _('Replied to comment on field %(field)s: "%(text)s"') % {
|
| 397 |
+
"field": self._field_label_from_content_path(
|
| 398 |
+
log_entry.page.specific_class,
|
| 399 |
+
log_entry.data["comment"]["contentpath"],
|
| 400 |
+
),
|
| 401 |
+
"text": log_entry.data["reply"]["text"],
|
| 402 |
+
}
|
| 403 |
+
except KeyError:
|
| 404 |
+
return _("Replied to a comment")
|
| 405 |
+
|
| 406 |
+
@actions.register_action("wagtail.comments.edit_reply")
|
| 407 |
+
class EditReplyActionFormatter(CommentLogFormatter):
|
| 408 |
+
label = _("Edit reply to comment")
|
| 409 |
+
|
| 410 |
+
def format_message(self, log_entry):
|
| 411 |
+
try:
|
| 412 |
+
return _(
|
| 413 |
+
'Edited a reply to a comment on field %(field)s: "%(text)s"'
|
| 414 |
+
) % {
|
| 415 |
+
"field": self._field_label_from_content_path(
|
| 416 |
+
log_entry.page.specific_class,
|
| 417 |
+
log_entry.data["comment"]["contentpath"],
|
| 418 |
+
),
|
| 419 |
+
"text": log_entry.data["reply"]["text"],
|
| 420 |
+
}
|
| 421 |
+
except KeyError:
|
| 422 |
+
return _("Edited a reply")
|
| 423 |
+
|
| 424 |
+
@actions.register_action("wagtail.comments.delete_reply")
|
| 425 |
+
class DeleteReplyActionFormatter(CommentLogFormatter):
|
| 426 |
+
label = _("Delete reply to comment")
|
| 427 |
+
|
| 428 |
+
def format_message(self, log_entry):
|
| 429 |
+
try:
|
| 430 |
+
return _(
|
| 431 |
+
'Deleted a reply to a comment on field %(field)s: "%(text)s"'
|
| 432 |
+
) % {
|
| 433 |
+
"field": self._field_label_from_content_path(
|
| 434 |
+
log_entry.page.specific_class,
|
| 435 |
+
log_entry.data["comment"]["contentpath"],
|
| 436 |
+
),
|
| 437 |
+
"text": log_entry.data["reply"]["text"],
|
| 438 |
+
}
|
| 439 |
+
except KeyError:
|
| 440 |
+
return _("Deleted a reply")
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
@hooks.register("register_log_actions")
|
| 444 |
+
def register_workflow_log_actions(actions):
|
| 445 |
+
class WorkflowLogFormatter(LogFormatter):
|
| 446 |
+
def format_comment(self, log_entry):
|
| 447 |
+
return log_entry.data.get("comment", "")
|
| 448 |
+
|
| 449 |
+
@actions.register_action("wagtail.workflow.start")
|
| 450 |
+
class StartWorkflowActionFormatter(WorkflowLogFormatter):
|
| 451 |
+
label = _("Workflow: start")
|
| 452 |
+
|
| 453 |
+
def format_message(self, log_entry):
|
| 454 |
+
try:
|
| 455 |
+
return _("'%(workflow)s' started. Next step '%(task)s'") % {
|
| 456 |
+
"workflow": log_entry.data["workflow"]["title"],
|
| 457 |
+
"task": log_entry.data["workflow"]["next"]["title"],
|
| 458 |
+
}
|
| 459 |
+
except (KeyError, TypeError):
|
| 460 |
+
return _("Workflow started")
|
| 461 |
+
|
| 462 |
+
@actions.register_action("wagtail.workflow.approve")
|
| 463 |
+
class ApproveWorkflowActionFormatter(WorkflowLogFormatter):
|
| 464 |
+
label = _("Workflow: approve task")
|
| 465 |
+
|
| 466 |
+
def format_message(self, log_entry):
|
| 467 |
+
try:
|
| 468 |
+
if log_entry.data["workflow"]["next"]:
|
| 469 |
+
return _("Approved at '%(task)s'. Next step '%(next_task)s'") % {
|
| 470 |
+
"task": log_entry.data["workflow"]["task"]["title"],
|
| 471 |
+
"next_task": log_entry.data["workflow"]["next"]["title"],
|
| 472 |
+
}
|
| 473 |
+
else:
|
| 474 |
+
return _("Approved at '%(task)s'. '%(workflow)s' complete") % {
|
| 475 |
+
"task": log_entry.data["workflow"]["task"]["title"],
|
| 476 |
+
"workflow": log_entry.data["workflow"]["title"],
|
| 477 |
+
}
|
| 478 |
+
except (KeyError, TypeError):
|
| 479 |
+
return _("Workflow task approved")
|
| 480 |
+
|
| 481 |
+
@actions.register_action("wagtail.workflow.reject")
|
| 482 |
+
class RejectWorkflowActionFormatter(WorkflowLogFormatter):
|
| 483 |
+
label = _("Workflow: reject task")
|
| 484 |
+
|
| 485 |
+
def format_message(self, log_entry):
|
| 486 |
+
try:
|
| 487 |
+
return _("Rejected at '%(task)s'. Changes requested") % {
|
| 488 |
+
"task": log_entry.data["workflow"]["task"]["title"],
|
| 489 |
+
}
|
| 490 |
+
except (KeyError, TypeError):
|
| 491 |
+
return _("Workflow task rejected. Workflow complete")
|
| 492 |
+
|
| 493 |
+
@actions.register_action("wagtail.workflow.resume")
|
| 494 |
+
class ResumeWorkflowActionFormatter(WorkflowLogFormatter):
|
| 495 |
+
label = _("Workflow: resume task")
|
| 496 |
+
|
| 497 |
+
def format_message(self, log_entry):
|
| 498 |
+
try:
|
| 499 |
+
return _("Resubmitted '%(task)s'. Workflow resumed") % {
|
| 500 |
+
"task": log_entry.data["workflow"]["task"]["title"],
|
| 501 |
+
}
|
| 502 |
+
except (KeyError, TypeError):
|
| 503 |
+
return _("Workflow task resubmitted. Workflow resumed")
|
| 504 |
+
|
| 505 |
+
@actions.register_action("wagtail.workflow.cancel")
|
| 506 |
+
class CancelWorkflowActionFormatter(WorkflowLogFormatter):
|
| 507 |
+
label = _("Workflow: cancel")
|
| 508 |
+
|
| 509 |
+
def format_message(self, log_entry):
|
| 510 |
+
try:
|
| 511 |
+
return _("Cancelled '%(workflow)s' at '%(task)s'") % {
|
| 512 |
+
"workflow": log_entry.data["workflow"]["title"],
|
| 513 |
+
"task": log_entry.data["workflow"]["task"]["title"],
|
| 514 |
+
}
|
| 515 |
+
except (KeyError, TypeError):
|
| 516 |
+
return _("Workflow cancelled")
|
testbed/wagtail__wagtail/wagtail/workflows.py
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from wagtail.models import Task
|
| 2 |
+
|
| 3 |
+
TASK_TYPES = []
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
def get_concrete_descendants(model_class, inclusive=True):
|
| 7 |
+
"""Retrieves non-abstract descendants of the given model class. If `inclusive` is set to
|
| 8 |
+
True, includes model_class"""
|
| 9 |
+
subclasses = model_class.__subclasses__()
|
| 10 |
+
if subclasses:
|
| 11 |
+
for subclass in subclasses:
|
| 12 |
+
yield from get_concrete_descendants(subclass)
|
| 13 |
+
if inclusive and not model_class._meta.abstract:
|
| 14 |
+
yield model_class
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
def get_task_types(task_class=None):
|
| 18 |
+
global TASK_TYPES
|
| 19 |
+
if TASK_TYPES:
|
| 20 |
+
return TASK_TYPES
|
| 21 |
+
TASK_TYPES = list(get_concrete_descendants(Task, inclusive=False))
|
| 22 |
+
return TASK_TYPES
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def publish_workflow_state(workflow_state, user=None):
|
| 26 |
+
# publish the Page associated with a WorkflowState
|
| 27 |
+
workflow_state.page.get_latest_revision().publish(user=user)
|