codeforlife-portal 5.32.2__py2.py3-none-any.whl → 8.9.9__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (393) hide show
  1. cfl_common/common/__init__.py +1 -0
  2. cfl_common/common/app_settings.py +66 -0
  3. cfl_common/common/apps.py +6 -0
  4. cfl_common/common/context_processors.py +9 -0
  5. cfl_common/common/csp_config.py +85 -0
  6. cfl_common/common/helpers/__init__.py +0 -0
  7. cfl_common/common/helpers/data_migration_loader.py +42 -0
  8. cfl_common/common/helpers/emails.py +393 -0
  9. cfl_common/common/helpers/generators.py +52 -0
  10. cfl_common/common/helpers/organisation.py +10 -0
  11. cfl_common/common/mail.py +201 -0
  12. cfl_common/common/migrations/0001_initial.py +240 -0
  13. cfl_common/common/migrations/0002_emailverification.py +55 -0
  14. cfl_common/common/migrations/0003_aimmocharacter.py +31 -0
  15. cfl_common/common/migrations/0004_add_aimmocharacters.py +17 -0
  16. cfl_common/common/migrations/0005_add_worksheets.py +8 -0
  17. cfl_common/common/migrations/0006_update_aimmo_character_image_path.py +17 -0
  18. cfl_common/common/migrations/0007_add_pdf_names_to_first_two_worksheets.py +8 -0
  19. cfl_common/common/migrations/0008_unlock_worksheet_3.py +11 -0
  20. cfl_common/common/migrations/0009_add_blocked_time_to_teacher_and_student.py +24 -0
  21. cfl_common/common/migrations/0010_remove_teacher_title.py +18 -0
  22. cfl_common/common/migrations/0011_student_login_id.py +18 -0
  23. cfl_common/common/migrations/0012_usersession.py +39 -0
  24. cfl_common/common/migrations/0013_class_school.py +42 -0
  25. cfl_common/common/migrations/0014_login_type.py +29 -0
  26. cfl_common/common/migrations/0015_dailyactivity.py +31 -0
  27. cfl_common/common/migrations/0016_joinreleasestudent.py +42 -0
  28. cfl_common/common/migrations/0017_copy_email_to_username.py +18 -0
  29. cfl_common/common/migrations/0018_update_aimmo_character_image_path.py +15 -0
  30. cfl_common/common/migrations/0019_aimmocharacter_alt.py +16 -0
  31. cfl_common/common/migrations/0020_class_is_active_and_null_access_code.py +23 -0
  32. cfl_common/common/migrations/0021_school_is_active.py +28 -0
  33. cfl_common/common/migrations/0022_school_cleanup.py +29 -0
  34. cfl_common/common/migrations/0023_userprofile_aimmo_badges.py +22 -0
  35. cfl_common/common/migrations/0024_teacher_invited_by.py +25 -0
  36. cfl_common/common/migrations/0025_schoolteacherinvitation.py +47 -0
  37. cfl_common/common/migrations/0026_teacher_remove_join_request.py +22 -0
  38. cfl_common/common/migrations/0027_class_created_by.py +25 -0
  39. cfl_common/common/migrations/0028_coding_club_downloads.py +23 -0
  40. cfl_common/common/migrations/0029_dynamicelement.py +22 -0
  41. cfl_common/common/migrations/0030_add_maintenance_banner.py +25 -0
  42. cfl_common/common/migrations/0031_improve_admin_panel.py +56 -0
  43. cfl_common/common/migrations/0032_dailyactivity_level_control_submits.py +18 -0
  44. cfl_common/common/migrations/0033_password_reset_tracking_fields.py +23 -0
  45. cfl_common/common/migrations/0034_dailyactivity_daily_school_student_lockout_reset.py +18 -0
  46. cfl_common/common/migrations/0035_rename_lockout_fields.py +27 -0
  47. cfl_common/common/migrations/0036_rename_awaiting_email_verification_userprofile_is_verified.py +17 -0
  48. cfl_common/common/migrations/0037_migrate_email_verification.py +21 -0
  49. cfl_common/common/migrations/0038_delete_emailverification.py +16 -0
  50. cfl_common/common/migrations/0039_copy_email_to_username.py +18 -0
  51. cfl_common/common/migrations/0040_school_county.py +18 -0
  52. cfl_common/common/migrations/0041_populate_gb_counties.py +27 -0
  53. cfl_common/common/migrations/0042_totalactivity.py +25 -0
  54. cfl_common/common/migrations/0043_add_total_activity.py +30 -0
  55. cfl_common/common/migrations/0044_update_activity_models.py +33 -0
  56. cfl_common/common/migrations/0045_otp.py +23 -0
  57. cfl_common/common/migrations/0046_alter_school_country.py +19 -0
  58. cfl_common/common/migrations/0047_delete_school_postcode.py +16 -0
  59. cfl_common/common/migrations/0048_unique_school_names.py +42 -0
  60. cfl_common/common/migrations/0049_anonymise_orphan_users.py +29 -0
  61. cfl_common/common/migrations/0050_anonymise_orphan_schools.py +30 -0
  62. cfl_common/common/migrations/0051_verify_returning_users.py +26 -0
  63. cfl_common/common/migrations/0052_add_cse_fields.py +68 -0
  64. cfl_common/common/migrations/0053_clean_class_data.py +24 -0
  65. cfl_common/common/migrations/0054_delete_aimmo_models.py +20 -0
  66. cfl_common/common/migrations/0055_alter_schoolteacherinvitation_token.py +18 -0
  67. cfl_common/common/migrations/0056_set_non_school_teachers_as_non_admins.py +25 -0
  68. cfl_common/common/migrations/0057_teacher_teacher__is_admin.py +19 -0
  69. cfl_common/common/migrations/0058_userprofile_google_refresh_token_and_more.py +24 -0
  70. cfl_common/common/migrations/__init__.py +0 -0
  71. cfl_common/common/models.py +557 -0
  72. cfl_common/common/permissions.py +84 -0
  73. cfl_common/common/tests/__init__.py +0 -0
  74. cfl_common/common/tests/test_migration_anonymise_orphan_schools.py +30 -0
  75. cfl_common/common/tests/test_migration_anonymise_orphan_users.py +30 -0
  76. cfl_common/common/tests/test_migration_blocked_time.py +15 -0
  77. cfl_common/common/tests/test_migration_remove_teacher_title.py +13 -0
  78. cfl_common/common/tests/test_migration_unique_school_names.py +33 -0
  79. cfl_common/common/tests/test_migration_verify_returning_users.py +59 -0
  80. cfl_common/common/tests/test_models.py +87 -0
  81. cfl_common/common/tests/utils/__init__.py +0 -0
  82. cfl_common/common/tests/utils/classes.py +38 -0
  83. cfl_common/common/tests/utils/email.py +67 -0
  84. cfl_common/common/tests/utils/organisation.py +41 -0
  85. cfl_common/common/tests/utils/student.py +123 -0
  86. cfl_common/common/tests/utils/teacher.py +73 -0
  87. cfl_common/common/tests/utils/user.py +27 -0
  88. cfl_common/common/utils.py +56 -0
  89. cfl_common/setup.py +61 -0
  90. codeforlife_portal-8.9.9.dist-info/METADATA +226 -0
  91. {codeforlife_portal-5.32.2.dist-info → codeforlife_portal-8.9.9.dist-info}/RECORD +341 -238
  92. {codeforlife_portal-5.32.2.dist-info → codeforlife_portal-8.9.9.dist-info}/WHEEL +1 -1
  93. codeforlife_portal-8.9.9.dist-info/licenses/LICENSE.md +3 -0
  94. {codeforlife_portal-5.32.2.dist-info → codeforlife_portal-8.9.9.dist-info}/top_level.txt +1 -0
  95. deploy/middleware/maintenance.py +25 -0
  96. deploy/middleware/screentime_warning.py +29 -0
  97. deploy/middleware/security.py +5 -6
  98. deploy/middleware/session_timeout.py +31 -0
  99. deploy/middleware/tmp_basic_auth.py +41 -0
  100. example_project/portal_test_settings.py +239 -0
  101. example_project/settings.py +156 -17
  102. example_project/urls.py +5 -6
  103. portal/__init__.py +1 -1
  104. portal/admin.py +142 -29
  105. portal/app_settings.py +10 -7
  106. portal/forms/dotmailer.py +6 -4
  107. portal/forms/invite_teacher.py +19 -10
  108. portal/forms/organisation.py +137 -68
  109. portal/forms/play.py +53 -98
  110. portal/forms/registration.py +70 -164
  111. portal/forms/teach.py +147 -121
  112. portal/handlers.py +1 -2
  113. portal/helpers/decorators.py +30 -10
  114. portal/helpers/password.py +86 -47
  115. portal/helpers/ratelimit.py +32 -15
  116. portal/helpers/regexes.py +5 -0
  117. portal/helpers/request_handlers.py +10 -0
  118. portal/migrations/0044_auto_20150430_0959.py +6 -2
  119. portal/mixins/__init__.py +1 -0
  120. portal/mixins/cron_mixin.py +12 -0
  121. portal/permissions/__init__.py +1 -0
  122. portal/permissions/is_cron_request_from_google.py +14 -0
  123. portal/static/portal/img/10_years_anniversary.png +0 -0
  124. portal/static/portal/img/RR_logo_grass_background.png +0 -0
  125. portal/static/portal/img/coding_club_hero.jpg +0 -0
  126. portal/static/portal/img/coding_club_python_pack.png +0 -0
  127. portal/static/portal/img/facebook.png +0 -0
  128. portal/static/portal/img/gitbook.png +0 -0
  129. portal/static/portal/img/howe_dell_1.png +0 -0
  130. portal/static/portal/img/howe_dell_2.png +0 -0
  131. portal/static/portal/img/howe_dell_3.png +0 -0
  132. portal/static/portal/img/logo_cfl.png +0 -0
  133. portal/static/portal/img/logo_cfl_powered.svg +35 -0
  134. portal/static/portal/img/logo_cfl_reminder_cards.jpg +0 -0
  135. portal/static/portal/img/logo_ocado_group.png +0 -0
  136. portal/static/portal/img/logo_python_den.svg +21 -0
  137. portal/static/portal/img/long_europe_map.png +0 -0
  138. portal/static/portal/img/python_den.png +0 -0
  139. portal/static/portal/img/python_den_banner.svg +26 -0
  140. portal/static/portal/img/rapid_router_landing_hero.png +0 -0
  141. portal/static/portal/img/rr_advanced.png +0 -0
  142. portal/static/portal/img/ten_year_map_pin.svg +1 -0
  143. portal/static/portal/img/thumbnail_educate_rapid_router.png +0 -0
  144. portal/static/portal/img/thumbnail_educate_resources.png +0 -0
  145. portal/static/portal/img/thumbnail_play_rapid_router.png +0 -0
  146. portal/static/portal/img/thumbnail_python_den.png +0 -0
  147. portal/static/portal/img/twitter.png +0 -0
  148. portal/static/portal/js/carouselCards.js +25 -0
  149. portal/static/portal/js/common.js +96 -1
  150. portal/static/portal/js/independentLogin.js +16 -0
  151. portal/static/portal/js/independentRegistration.js +86 -0
  152. portal/static/portal/js/levelControl.js +77 -0
  153. portal/static/portal/js/lib/jquery.min.js +2 -0
  154. portal/static/portal/js/organisation_manage.js +142 -14
  155. portal/static/portal/js/passwordStrength.js +154 -64
  156. portal/static/portal/js/resetPassword.js +23 -0
  157. portal/static/portal/js/riveted.min.js +238 -239
  158. portal/static/portal/js/school.js +13 -0
  159. portal/static/portal/js/studentLogin.js +16 -0
  160. portal/static/portal/js/teacherEditStudent.js +23 -0
  161. portal/static/portal/js/teacherLogin.js +16 -0
  162. portal/static/portal/js/tenYearMap.js +14 -0
  163. portal/static/portal/sass/colorbox.scss +0 -1
  164. portal/static/portal/sass/modules/_colours.scss +1 -0
  165. portal/static/portal/sass/modules/_levels.scss +1 -1
  166. portal/static/portal/sass/modules/_mixins.scss +21 -0
  167. portal/static/portal/sass/partials/_banners.scss +4 -177
  168. portal/static/portal/sass/partials/_buttons.scss +12 -15
  169. portal/static/portal/sass/partials/_carousel.scss +129 -0
  170. portal/static/portal/sass/partials/_footer.scss +21 -22
  171. portal/static/portal/sass/partials/_forms.scss +60 -5
  172. portal/static/portal/sass/partials/_grids.scss +34 -61
  173. portal/static/portal/sass/partials/_header.scss +28 -20
  174. portal/static/portal/sass/partials/_images.scss +292 -39
  175. portal/static/portal/sass/partials/_popup.scss +18 -15
  176. portal/static/portal/sass/partials/_tables.scss +12 -20
  177. portal/static/portal/sass/partials/_text.scss +6 -10
  178. portal/static/portal/sass/styles.scss +0 -1
  179. portal/static/portal/video/code for life .pdf +0 -0
  180. portal/strings/about.py +5 -0
  181. portal/strings/coding_club.py +9 -0
  182. portal/strings/play.py +6 -5
  183. portal/strings/teach.py +1 -1
  184. portal/strings/teacher_resources.py +2 -8
  185. portal/strings/ten_year_map.py +13 -0
  186. portal/templates/403.html +2 -2
  187. portal/templates/404.html +1 -1
  188. portal/templates/500.html +2 -2
  189. portal/templates/{captcha → django_recaptcha}/includes/js_v2_invisible.html +3 -3
  190. portal/templates/{captcha → django_recaptcha}/widget_v2_invisible.html +2 -2
  191. portal/templates/email.html +4 -2
  192. portal/templates/maintenance.html +34 -0
  193. portal/templates/portal/about.html +94 -62
  194. portal/templates/portal/base.html +176 -152
  195. portal/templates/portal/coding_club.html +100 -0
  196. portal/templates/portal/contribute.html +56 -52
  197. portal/templates/portal/email_invitation_sent.html +1 -1
  198. portal/templates/portal/email_style_template.html +374 -0
  199. portal/templates/portal/email_verification_failed.html +1 -1
  200. portal/templates/portal/email_verification_needed.html +9 -9
  201. portal/templates/portal/form_shapes.html +20 -8
  202. portal/templates/portal/getinvolved.html +6 -6
  203. portal/templates/portal/home.html +35 -10
  204. portal/templates/portal/home_learning.html +19 -19
  205. portal/templates/portal/locked_out.html +0 -1
  206. portal/templates/portal/locked_out_school_student.html +16 -0
  207. portal/templates/portal/login/independent_student.html +31 -15
  208. portal/templates/portal/login/student.html +10 -7
  209. portal/templates/portal/login/student_class_code.html +7 -4
  210. portal/templates/portal/login/teacher.html +34 -17
  211. portal/templates/portal/partials/banner.html +18 -4
  212. portal/templates/portal/partials/benefits.html +1 -1
  213. portal/templates/portal/partials/card_list.html +34 -24
  214. portal/templates/portal/partials/character_list.html +5 -5
  215. portal/templates/portal/partials/cookie_list.html +161 -0
  216. portal/templates/portal/partials/delete_popup.html +18 -0
  217. portal/templates/portal/partials/footer.html +57 -26
  218. portal/templates/portal/partials/header.html +118 -117
  219. portal/templates/portal/partials/hero_card.html +4 -3
  220. portal/templates/portal/partials/info_popup.html +3 -3
  221. portal/templates/portal/partials/invite_admin_teacher.html +23 -0
  222. portal/templates/portal/partials/popup.html +7 -2
  223. portal/templates/portal/partials/register_newsletter_tickbox.html +2 -5
  224. portal/templates/portal/partials/screentime_popup.html +14 -0
  225. portal/templates/portal/partials/service_unavailable_popup.html +17 -0
  226. portal/templates/portal/partials/session_popup.html +19 -0
  227. portal/templates/portal/play/student_dashboard.html +42 -29
  228. portal/templates/portal/play/student_edit_account.html +64 -9
  229. portal/templates/portal/play.html +61 -41
  230. portal/templates/portal/privacy_notice.html +697 -0
  231. portal/templates/portal/register.html +122 -92
  232. portal/templates/portal/reset_password.html +20 -40
  233. portal/templates/portal/reset_password_confirm.html +9 -4
  234. portal/templates/portal/reset_password_email_sent.html +15 -13
  235. portal/templates/portal/teach/base_registering.html +1 -1
  236. portal/templates/portal/teach/class.html +4 -6
  237. portal/templates/portal/teach/dashboard.html +212 -117
  238. portal/templates/portal/teach/invited.html +90 -0
  239. portal/templates/portal/teach/onboarding_classes.html +5 -3
  240. portal/templates/portal/teach/onboarding_print.html +1 -1
  241. portal/templates/portal/teach/onboarding_school.html +26 -139
  242. portal/templates/portal/teach/onboarding_students.html +1 -1
  243. portal/templates/portal/teach/teacher_dismiss_students.html +73 -55
  244. portal/templates/portal/teach/teacher_edit_class.html +168 -11
  245. portal/templates/portal/teach/teacher_edit_student.html +12 -5
  246. portal/templates/portal/teach/teacher_move_all_classes.html +25 -38
  247. portal/templates/portal/teach/teacher_move_students_to_class.html +1 -1
  248. portal/templates/portal/teach.html +61 -42
  249. portal/templates/portal/ten_year_map.html +147 -0
  250. portal/templates/portal/terms.html +191 -42
  251. portal/templates/two_factor/core/login.html +71 -59
  252. portal/templates/two_factor/core/setup.html +58 -49
  253. portal/templates/two_factor/profile/disable.html +1 -1
  254. portal/templates/two_factor/profile/profile.html +35 -17
  255. portal/templatetags/app_tags.py +59 -84
  256. portal/templatetags/card_list_tags.py +0 -4
  257. portal/tests/base_test.py +14 -3
  258. portal/tests/conftest.py +0 -15
  259. portal/tests/migrations/test_migration_make_portaladmin_teacher.py +2 -6
  260. portal/tests/migrations/test_migration_preview_users.py +3 -9
  261. portal/tests/migrations/test_migration_remove_guardian.py +1 -3
  262. portal/tests/migrations/test_migration_use_common_models.py +2 -6
  263. portal/tests/migrations/test_migration_verify_portaladmin.py +1 -3
  264. portal/tests/pageObjects/portal/admin/admin_base_page.py +0 -21
  265. portal/tests/pageObjects/portal/base_page.py +16 -26
  266. portal/tests/pageObjects/portal/email_verification_needed_page.py +3 -2
  267. portal/tests/pageObjects/portal/game_page.py +12 -19
  268. portal/tests/pageObjects/portal/home_page.py +13 -15
  269. portal/tests/pageObjects/portal/independent_login_page.py +13 -17
  270. portal/tests/pageObjects/portal/password_reset_form_page.py +20 -4
  271. portal/tests/pageObjects/portal/password_reset_page.py +25 -0
  272. portal/tests/pageObjects/portal/play/account_page.py +18 -27
  273. portal/tests/pageObjects/portal/play/dashboard_page.py +4 -4
  274. portal/tests/pageObjects/portal/play/join_school_or_club_page.py +8 -10
  275. portal/tests/pageObjects/portal/play/play_base_page.py +5 -3
  276. portal/tests/pageObjects/portal/signup_page.py +28 -59
  277. portal/tests/pageObjects/portal/student_login_class_code.py +6 -9
  278. portal/tests/pageObjects/portal/student_login_page.py +6 -8
  279. portal/tests/pageObjects/portal/teach/add_independent_student_to_class_page.py +3 -3
  280. portal/tests/pageObjects/portal/teach/added_independent_student_to_class_page.py +3 -1
  281. portal/tests/pageObjects/portal/teach/class_page.py +36 -13
  282. portal/tests/pageObjects/portal/teach/dashboard_page.py +43 -84
  283. portal/tests/pageObjects/portal/teach/dismiss_students_page.py +7 -5
  284. portal/tests/pageObjects/portal/teach/edit_student_page.py +10 -8
  285. portal/tests/pageObjects/portal/teach/move_class_page.py +5 -10
  286. portal/tests/pageObjects/portal/teach/move_classes_page.py +4 -2
  287. portal/tests/pageObjects/portal/teach/move_students_disambiguate_page.py +4 -2
  288. portal/tests/pageObjects/portal/teach/move_students_page.py +6 -13
  289. portal/tests/pageObjects/portal/teach/onboarding_classes_page.py +5 -3
  290. portal/tests/pageObjects/portal/teach/onboarding_organisation_page.py +11 -49
  291. portal/tests/pageObjects/portal/teach/onboarding_student_list_page.py +7 -12
  292. portal/tests/pageObjects/portal/teach/onboarding_students_page.py +4 -27
  293. portal/tests/pageObjects/portal/teach/teach_base_page.py +6 -4
  294. portal/tests/pageObjects/portal/teacher_login_page.py +10 -16
  295. portal/tests/selenium_test_case.py +3 -43
  296. portal/tests/snapshots/snap_test_partials.py +11 -165
  297. portal/tests/test_2FA.py +15 -33
  298. portal/tests/test_admin.py +15 -97
  299. portal/tests/test_api.py +212 -73
  300. portal/tests/test_captcha_forms.py +2 -2
  301. portal/tests/test_class.py +374 -24
  302. portal/tests/test_emails.py +83 -20
  303. portal/tests/{test_newsletter_footer.py → test_global_forms.py} +5 -5
  304. portal/tests/test_helper_methods.py +30 -0
  305. portal/tests/test_independent_student.py +255 -144
  306. portal/tests/test_invite_teacher.py +318 -10
  307. portal/tests/test_middleware.py +138 -15
  308. portal/tests/test_organisation.py +78 -262
  309. portal/tests/test_partials.py +0 -88
  310. portal/tests/test_ratelimit.py +218 -36
  311. portal/tests/test_school_student.py +35 -40
  312. portal/tests/test_security.py +12 -31
  313. portal/tests/test_teacher.py +425 -325
  314. portal/tests/test_teacher_student.py +103 -91
  315. portal/tests/test_views.py +900 -76
  316. portal/tests/utils/classes.py +2 -2
  317. portal/tests/utils/messages.py +13 -28
  318. portal/urls.py +237 -164
  319. portal/views/admin.py +0 -332
  320. portal/views/api.py +82 -68
  321. portal/views/cron/__init__.py +1 -0
  322. portal/views/cron/user.py +322 -0
  323. portal/views/dotmailer.py +9 -1
  324. portal/views/email.py +33 -77
  325. portal/views/google_analytics.py +28 -0
  326. portal/views/home.py +126 -97
  327. portal/views/legal.py +13 -0
  328. portal/views/login/independent_student.py +5 -5
  329. portal/views/login/student.py +51 -14
  330. portal/views/login/teacher.py +2 -6
  331. portal/views/organisation.py +20 -189
  332. portal/views/registration.py +97 -17
  333. portal/views/student/edit_account_details.py +99 -72
  334. portal/views/student/play.py +81 -62
  335. portal/views/teacher/dashboard.py +421 -149
  336. portal/views/teacher/teach.py +226 -177
  337. portal/views/two_factor/__init__.py +0 -0
  338. portal/views/two_factor/core.py +28 -0
  339. portal/views/two_factor/form.py +7 -0
  340. portal/views/two_factor/profile.py +11 -0
  341. codeforlife_portal-5.32.2.dist-info/LICENSE.md +0 -577
  342. codeforlife_portal-5.32.2.dist-info/METADATA +0 -38
  343. deploy/permissions.py +0 -2
  344. example_project/manage.py +0 -10
  345. portal/autoconfig.py +0 -140
  346. portal/csp_config.py +0 -60
  347. portal/forms/add_game.py +0 -33
  348. portal/helpers/location.py +0 -121
  349. portal/static/portal/img/kurono_hero.jpg +0 -0
  350. portal/static/portal/img/kurono_landing_hero.png +0 -0
  351. portal/static/portal/img/kurono_logo.svg +0 -1
  352. portal/static/portal/img/kurono_logo_grey_background.svg +0 -1
  353. portal/static/portal/img/kurono_logo_mark.svg +0 -1
  354. portal/static/portal/img/kurono_resources_hero.jpg +0 -0
  355. portal/static/portal/img/kurono_story.png +0 -0
  356. portal/static/portal/img/ocado-swirl.svg +0 -22
  357. portal/static/portal/img/thumbnail_educate_kurono.png +0 -0
  358. portal/static/portal/img/thumbnail_educate_resources_and_progress_tracking.png +0 -0
  359. portal/static/portal/img/thumbnail_kurono_resources.png +0 -0
  360. portal/static/portal/img/thumbnail_play_kurono.png +0 -0
  361. portal/static/portal/img/x_close_video.png +0 -0
  362. portal/static/portal/js/aimmoGame.js +0 -106
  363. portal/static/portal/js/deleteWorkspaces.js +0 -14
  364. portal/static/portal/js/fuzzySchoolLookup.js +0 -46
  365. portal/static/portal/js/lib/jquery-3.5.1.min.js +0 -2
  366. portal/static/portal/js/lib/jquery-ui-1.12.1.min.js +0 -13
  367. portal/static/portal/sass/partials/_videos.scss +0 -10
  368. portal/static/portal/video/aimmo_play_now_background_video.mp4 +0 -0
  369. portal/strings/student_aimmo_dashboard.py +0 -6
  370. portal/templates/portal/admin/aggregated_data.html +0 -35
  371. portal/templates/portal/admin/map.html +0 -70
  372. portal/templates/portal/mouseflow.html +0 -9
  373. portal/templates/portal/partials/aimmo_games_table.html +0 -83
  374. portal/templates/portal/partials/register_over_required_age_tickbox.html +0 -9
  375. portal/templates/portal/play/independent_student_dashboard.html +0 -64
  376. portal/templates/portal/play/student_aimmo_dashboard.html +0 -63
  377. portal/templates/portal/privacy_policy.html +0 -483
  378. portal/templates/portal/reset_password_email.html +0 -9
  379. portal/templates/portal/teach/invite.html +0 -25
  380. portal/templates/portal/teach/teacher_aimmo_dashboard.html +0 -95
  381. portal/templates/portal/teach/teacher_resources.html +0 -68
  382. portal/templatetags/character_list_tags.py +0 -16
  383. portal/tests/pageObjects/portal/kurono_teacher_dashboard_page.py +0 -49
  384. portal/tests/pageObjects/portal/student_password_reset_form_page.py +0 -23
  385. portal/tests/pageObjects/portal/teach/onboarding_revoke_request_page.py +0 -20
  386. portal/tests/pageObjects/portal/teacher_password_reset_form_page.py +0 -23
  387. portal/tests/test_aimmo_dashboards.py +0 -172
  388. portal/tests/test_location.py +0 -217
  389. portal/tests/utils/aimmo_games.py +0 -30
  390. portal/views/aimmo/dashboard.py +0 -119
  391. portal/views/privacy_policy.py +0 -9
  392. portal/views/teacher/teacher_resources.py +0 -42
  393. {portal/views/aimmo → cfl_common}/__init__.py +0 -0
File without changes
@@ -0,0 +1,28 @@
1
+ import common.permissions as permissions
2
+ from django.contrib.auth.decorators import user_passes_test
3
+ from django.urls import reverse_lazy
4
+ from django.utils.decorators import method_decorator
5
+ from django.views.decorators.cache import never_cache
6
+ from two_factor.forms import MethodForm
7
+ from two_factor.views.core import SetupView
8
+
9
+
10
+ def login_required(function=None):
11
+ """
12
+ Decorator for views that checks that the user is logged in, redirecting
13
+ to the log-in page if necessary.
14
+ """
15
+ actual_decorator = user_passes_test(
16
+ permissions.logged_in_as_teacher,
17
+ login_url=reverse_lazy("teacher_login"),
18
+ )
19
+ if function:
20
+ return actual_decorator(function)
21
+ return actual_decorator
22
+
23
+
24
+ # This custom class gets rid of the 'welcome' step of 2FA
25
+ # which the new design not needs any more
26
+ @method_decorator([never_cache, login_required], name="dispatch")
27
+ class CustomSetupView(SetupView):
28
+ form_list = (("method", MethodForm),)
@@ -0,0 +1,7 @@
1
+ from django import forms
2
+
3
+
4
+ # This is the form that asks if the user wants to disable 2FA after clicking disable
5
+ # 2FA, setting it to always checked and hidden in CSS
6
+ class DisableForm(forms.Form):
7
+ understand = forms.BooleanField(label="", initial=True)
@@ -0,0 +1,11 @@
1
+ from django.utils.decorators import method_decorator
2
+ from django.views.decorators.cache import never_cache
3
+ from two_factor.views.profile import DisableView
4
+
5
+ from .form import DisableForm
6
+
7
+
8
+ # This is not changed but imports the from form.py so it overwrites the disable 2FA form
9
+ @method_decorator(never_cache, name='dispatch')
10
+ class CustomDisableView(DisableView):
11
+ form_class = DisableForm
@@ -1,577 +0,0 @@
1
- # GNU AFFERO GENERAL PUBLIC LICENSE
2
-
3
- ---
4
-
5
- ## Version 3, 19 November 2007
6
-
7
- Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>. Everyone is permitted to copy and distribute
8
- verbatim copies of this license document, but changing it is not allowed.
9
-
10
- ## Preamble
11
-
12
- The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically
13
- designed to ensure cooperation with the community in the case of network server software.
14
-
15
- The licenses for most software and other practical works are designed to take away your freedom to share and change the
16
- works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions
17
- of a program-to make sure it remains free software for all its users.
18
-
19
- When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make
20
- sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive
21
- source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and
22
- that you know you can do these things.
23
-
24
- Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the
25
- software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the
26
- software.
27
-
28
- A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if
29
- they receive widespread use, become available for other developers to incorporate. Many developers of free software are
30
- heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this
31
- result may fail to come about. The GNU General Public License permits making a modified version and letting the public
32
- access it on a server without ever releasing its source code to the public.
33
-
34
- The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code
35
- becomes available to the community. It requires the operator of a network server to provide the source code of the
36
- modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly
37
- accessible server, gives the public access to the source code of the modified version.
38
-
39
- An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar
40
- goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero
41
- GPL which permits relicensing under this license.
42
-
43
- The precise terms and conditions for copying, distribution and modification follow.
44
-
45
- ---
46
- # TERMS AND CONDITIONS
47
-
48
- ### 0. Definitions
49
-
50
- "This License" refers to version 3 of the GNU Affero General Public License.
51
-
52
- "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
53
-
54
- "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you".
55
- "Licensees" and "recipients" may be individuals or organizations.
56
-
57
- To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission,
58
- other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work
59
- "based on" the earlier work.
60
-
61
- A "covered work" means either the unmodified Program or a work based on the Program.
62
-
63
- To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily
64
- liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy.
65
- Propagation includes copying, distribution (with or without modification), making available to the public, and in some
66
- countries other activities as well.
67
-
68
- To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction
69
- with a user through a computer network, with no transfer of a copy, is not conveying.
70
-
71
- An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and
72
- prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no
73
- warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this
74
- License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a
75
- menu, a prominent item in the list meets this criterion.
76
-
77
- ### 1. Source Code
78
-
79
- The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means
80
- any non-source form of a work.
81
-
82
- A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body,
83
- or, in the case of interfaces specified for a particular programming language, one that is widely used among developers
84
- working in that language.
85
-
86
- The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in
87
- the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to
88
- enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is
89
- available to the public in source code form. A "Major Component", in this context, means a major essential component
90
- (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a
91
- compiler used to produce the work, or an object code interpreter used to run it.
92
-
93
- The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and
94
- (for an executable work) run the object code and to modify the work, including scripts to control those activities.
95
- However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs
96
- which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding
97
- Source includes interface definition files associated with source files for the work, and the source code for shared
98
- libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data
99
- communication or control flow between those subprograms and other parts of the work.
100
-
101
- The Corresponding Source need not include anything that users can regenerate automatically from other parts of the
102
- Corresponding Source.
103
-
104
- The Corresponding Source for a work in source code form is that same work.
105
-
106
- ### 2. Basic Permissions
107
-
108
- All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided
109
- the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program.
110
- The output from running a covered work is covered by this License only if the output, given its content, constitutes a
111
- covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
112
-
113
- You may make, run and propagate covered works that you do not convey, without conditions so long as your license
114
- otherwise remains in force. You may convey covered works to others for the sole purpose of having them make
115
- modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with
116
- the terms of this License in conveying all material for which you do not control copyright. Those thus making or
117
- running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that
118
- prohibit them from making any copies of your copyrighted material outside their relationship with you.
119
-
120
- Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not
121
- allowed; section 10 makes it unnecessary.
122
-
123
- ### 3. Protecting Users' Legal Rights From Anti-Circumvention Law
124
-
125
- No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling
126
- obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or
127
- restricting circumvention of such measures.
128
-
129
- When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the
130
- extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you
131
- disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's
132
- users, your or third parties' legal rights to forbid circumvention of technological measures.
133
-
134
- ### 4. Conveying Verbatim Copies
135
-
136
- You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you
137
- conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating
138
- that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices
139
- of the absence of any warranty; and give all recipients a copy of this License along with the Program.
140
-
141
- You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for
142
- a fee.
143
-
144
- ### 5. Conveying Modified Source Version
145
-
146
- You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source
147
- code under the terms of section 4, provided that you also meet all of these conditions:
148
-
149
- - a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
150
-
151
-
152
- - b) The work must carry prominent notices stating that it is released under this License and any conditions added under
153
- section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
154
-
155
-
156
- - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy.
157
- This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and
158
- all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other
159
- way, but it does not invalidate such permission if you have separately received it.
160
-
161
-
162
- - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program
163
- has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
164
-
165
-
166
- A compilation of a covered work with other separate and independent works, which are not by their nature extensions of
167
- the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or
168
- distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the
169
- access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work
170
- in an aggregate does not cause this License to apply to the other parts of the aggregate.
171
-
172
- ### 6. Conveying Non-Source Forms
173
-
174
- You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the
175
- machine-readable Corresponding Source under the terms of this License, in one of these ways:
176
-
177
- - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium),
178
- accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
179
-
180
-
181
- - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium),
182
- accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or
183
- customer support for that product model, to give anyone who possesses the object code either (1) a copy of the
184
- Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium
185
- customarily used for software interchange, for a price no more than your reasonable cost of physically performing this
186
- conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
187
-
188
-
189
- - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source.
190
- This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an
191
- offer, in accord with subsection 6b.
192
-
193
-
194
- - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent
195
- access to the Corresponding Source in the same way through the same place at no further charge. You need not require
196
- recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a
197
- network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports
198
- equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the
199
- Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it
200
- is available for as long as needed to satisfy these requirements.
201
-
202
-
203
- - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and
204
- Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
205
-
206
-
207
- A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library,
208
- need not be included in conveying the object code work.
209
-
210
- A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used
211
- for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In
212
- determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a
213
- particular product received by a particular user, "normally used" refers to a typical or common use of that class of
214
- product, regardless of the status of the particular user or of the way in which the particular user actually uses, or
215
- expects or is expected to use, the product. A product is a consumer product regardless of whether the product has
216
- substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of
217
- the product.
218
-
219
- "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information
220
- required to install and execute modified versions of a covered work in that User Product from a modified version of its
221
- Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code
222
- is in no case prevented or interfered with solely because modification has been made.
223
-
224
- If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the
225
- conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to
226
- the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding
227
- Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply
228
- if neither you nor any third party retains the ability to install modified object code on the User Product (for example,
229
- the work has been installed in ROM).
230
-
231
- The requirement to provide Installation Information does not include a requirement to continue to provide support
232
- service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product
233
- in which it has been modified or installed. Access to a network may be denied when the modification itself materially
234
- and adversely affects the operation of the network or violates the rules and protocols for communication across the
235
- network.
236
-
237
- Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format
238
- that is publicly documented (and with an implementation available to the public in source code form), and must require
239
- no special password or key for unpacking, reading or copying.
240
-
241
- ### 7. Additional Terms
242
-
243
- "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of
244
- its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were
245
- included in this License, to the extent that they are valid under applicable law. If additional permissions apply only
246
- to part of the Program, that part may be used separately under those permissions, but the entire Program remains
247
- governed by this License without regard to the additional permissions.
248
-
249
- When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or
250
- from any part of it. (Additional permissions may be written to require their own removal in certain cases when you
251
- modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have
252
- or can give appropriate copyright permission.
253
-
254
- Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by
255
- the copyright holders of that material) supplement the terms of this License with terms:
256
-
257
- - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
258
-
259
-
260
- - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the
261
- Appropriate Legal Notices displayed by works containing it; or
262
-
263
-
264
- - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material
265
- be marked in reasonable ways as different from the original version; or
266
-
267
-
268
- - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
269
-
270
-
271
- - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
272
-
273
-
274
- - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified
275
- versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual
276
- assumptions directly impose on those licensors and authors.
277
-
278
-
279
- All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the
280
- Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with
281
- a term that is a further restriction, you may remove that term. If a license document contains a further restriction
282
- but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms
283
- of that license document, provided that the further restriction does not survive such relicensing or conveying.
284
-
285
- If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a
286
- statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
287
-
288
- Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as
289
- exceptions; the above requirements apply either way.
290
-
291
- ### 8. Termination
292
-
293
- You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to
294
- propagate or modify it is void, and will automatically terminate your rights under
295
- this License (including any patent licenses granted under the third
296
- paragraph of section 11).
297
-
298
- However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated
299
- (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b)
300
- permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days
301
- after the cessation.
302
-
303
- Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you
304
- of the violation by some reasonable means, this is the first time you have received notice of violation of this License
305
- (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
306
-
307
- Termination of your rights under this section does not terminate the licenses of parties who have received copies or
308
- rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not
309
- qualify to receive new licenses for the same material under section 10.
310
-
311
- ### 9. Acceptance Not Required for Having Copies
312
-
313
- You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a
314
- covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not
315
- require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered
316
- work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a
317
- covered work, you indicate your acceptance of this License to do so.
318
-
319
- ### 10. Automatic Licensing of Downstream Recipients
320
-
321
- Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run,
322
- modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third
323
- parties with this License.
324
-
325
- An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or
326
- subdividing an organization, or merging organizations. If propagation of a covered work results from an entity
327
- transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work
328
- the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the
329
- Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with
330
- reasonable efforts.
331
-
332
- You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For
333
- example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License,
334
- and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent
335
- claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
336
-
337
- ### 11. Patents
338
-
339
- A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the
340
- Program is based. The work thus licensed is called the contributor's "contributor version".
341
-
342
- A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already
343
- acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or
344
- selling its contributor version, but do not include claims that would be infringed only as a consequence of further
345
- modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent
346
- sublicenses in a manner consistent with the requirements of this License.
347
-
348
- Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential
349
- patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its
350
- contributor version.
351
-
352
- In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not
353
- to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement).
354
- To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent
355
- against the party.
356
-
357
- If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not
358
- available for anyone to copy, free of charge and under the terms of this License, through a publicly available network
359
- server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or
360
- (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a
361
- manner consistent with the requirements of this License, to extend the patent license to downstream recipients.
362
- "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in
363
- a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in
364
- that country that you have reason to believe are valid.
365
-
366
- If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring
367
- conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing
368
- them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is
369
- automatically extended to all recipients of the covered work and works based on it.
370
-
371
- A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of,
372
- or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You
373
- may not convey a covered work if you are a party to an arrangement with a third party that is in the business of
374
- distributing software, under which you make payment to the third party based on the extent of your activity of conveying
375
- the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a
376
- discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from
377
- those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered
378
- work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
379
-
380
- Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to
381
- infringement that may otherwise be available to you under applicable patent law.
382
-
383
- ### 12. No Surrender of Others' Freedom
384
-
385
- If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this
386
- License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to
387
- satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence
388
- you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further
389
- conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License
390
- would be to refrain entirely from conveying the Program.
391
-
392
- ### 13. Remote Network Interaction; Use with the GNU General Public License
393
-
394
- Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently
395
- offer all users interacting with it remotely through a computer network (if your version supports such interaction) an
396
- opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a
397
- network server at no charge, through some standard or customary means of facilitating copying of software. This
398
- Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public
399
- License that is incorporated pursuant to the following paragraph.
400
-
401
- Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work
402
- licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting
403
- work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it
404
- is combined will remain governed by version 3 of the GNU General Public License.
405
-
406
- ### 14. Revised Versions of this License.
407
-
408
- The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time
409
- to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new
410
- problems or concerns.
411
-
412
- Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the
413
- GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and
414
- conditions either of that numbered version or of any later version published by the Free Software Foundation. If the
415
- Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever
416
- published by the Free Software Foundation.
417
-
418
- If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be
419
- used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the
420
- Program.
421
-
422
- Later license versions may give you additional or different permissions. However, no additional obligations are imposed
423
- on any author or copyright holder as a result of your choosing to follow a later version.
424
-
425
- ### 15. Disclaimer of Warranty
426
-
427
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING
428
- THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
429
- IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
430
- THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU
431
- ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
432
-
433
- ### 16. Limitation of Liability
434
-
435
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO
436
- MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
437
- INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO
438
- LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM
439
- TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
440
- DAMAGES.
441
-
442
- ### 17. Interpretation of Sections 15 and 16
443
-
444
- If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to
445
- their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil
446
- liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program
447
- in return for a fee.
448
-
449
- ## ADDITIONAL TERMS – Section 7 GNU General Public Licence
450
-
451
- This licence does not grant any right, title or interest in any “Ocado” logos, trade names or the trademark “Ocado” or
452
- any other trademarks or domain names owned by Ocado Innovation Limited or the Ocado group of companies or any other
453
- distinctive brand features of “Ocado” as may be secured from time to time. You must not distribute any modification of
454
- this program using the trademark “Ocado” or claim any affiliation or association with Ocado or its employees.
455
-
456
- You are not authorised to use the name Ocado (or any of its trade names) or the names of any author or contributor in
457
- advertising or for publicity purposes pertaining to the distribution of this program, without the prior written
458
- authorisation of Ocado.
459
-
460
- Any propagation, distribution or conveyance of this program must include this copyright notice and these terms. You must
461
- not misrepresent the origins of this program; modified versions of the program must be marked as such and not
462
- identified as the original program.
463
-
464
- # END OF TERMS AND CONDITIONS
465
-
466
- ---
467
-
468
- # CONTRIBUTOR AGREEMENT
469
-
470
- Thank you for Your interest in contributing to the Code for Life project (the “**Project**”) managed by Ocado Technology
471
- (“**Ocado**”, “**We**” or “**Us**”). Please read the following terms carefully. By contributing to the Code for Life
472
- project on this website You are agreeing to the following terms.
473
-
474
- **1. DEFINITIONS**
475
-
476
- 1.1. “**Agreement**” means this contributor agreement.
477
-
478
- 1.2. “**You**” or “**Your**” means the individual who Submits a Contribution to Us.
479
-
480
- 1.3. “**Code**” means the computer software code, whether in human-readable or machine-executable form, that is
481
- Submitted by You.
482
-
483
- 1.4. “**Contribution**” means the Code and any other work of authorship that is Submitted by You to Us in which You own
484
- or assert ownership of the copyright.
485
-
486
- 1.5. “**Submit**” means the act of uploading, submitting, transmitting, or distributing code or other content to the
487
- Project.
488
-
489
- **2. GRANT OF RIGHTS**
490
-
491
- **2.1. Copyright License**
492
-
493
- 2.1.1. To the maximum extent permitted by applicable law, You grant to Us, and those who receive the Contribution
494
- directly or indirectly from Us, a perpetual, worldwide, non-exclusive, transferable, royalty-free, irrevocable license
495
- to use, reproduce, modify, display, prepare derivative works of, perform, distribute and commercialise the Contribution,
496
- with the right to sub-license, and permit sub-licensees to sub-license, the same.
497
-
498
- 2.1.2. Each party reserves all rights not expressly granted in this Agreement. No additional licenses or rights are
499
- granted by implication, exhaustion, estoppel or otherwise.
500
-
501
- 2.1.3. You retain ownership of the copyright in Your Contribution. This Agreement does not affect any rights You have to
502
- use or license Your Contribution as You see fit.
503
-
504
- **2.2. Patent License**
505
-
506
- You grant us, and those who receive the Contribution directly or indirectly from Us, a perpetual, worldwide,
507
- non-exclusive, transferable, royalty-free, irrevocable patent license under Your patent claims (but only to the extent
508
- that the exercise of the licensed rights infringes such patent claims) to make, have made, use, sell, offer for sale,
509
- import and otherwise transfer or dispose of the Contribution, alone or with the Project, with the right to sub-license,
510
- and permit sub-licensees to sub-license, the same.
511
-
512
- **2.3. No right to use trademarks**
513
-
514
- 2.3.1. Neither this Agreement nor your Contribution to the Project grants You any right, title or interest in any
515
- “Ocado” logos, trade names or the trademark “Ocado” or any other trademarks or domain names owned by Ocado Innovation
516
- Limited or the Ocado group of companies or any other distinctive brand features of “Ocado” as may be secured from time
517
- to time.
518
-
519
- 2.3.2. You must not distribute any modification of this Project using the trademark “Ocado”.
520
-
521
- **3. USE IN THE PROJECT**
522
-
523
- 3.1. You acknowledge that We are not obliged to use Your Contribution as part of the Project. We may decide to include
524
- any Contribution (in whole or in part) that We consider appropriate in Our sole discretion.
525
-
526
- 3.2. You acknowledge and agree that Contributions to the Project may be maintained in perpetuity and publicly disclosed.
527
- This may include Your name and other information that You Submit.
528
-
529
- **4. ACKNOWLEDGEMENTS**
530
-
531
- 4.1. Unless You are a current employee or contractor of Ocado or any member of its group, You must not claim any
532
- affiliation or association with Ocado or its employees, other than as set out in this clause 4. E.g. making a
533
- Contribution to the Project does not grant You the right to claim that You have worked for or are employed by Ocado or
534
- any member of its group.
535
-
536
- 4.2. If You wish to disclose publicly that You have contributed to the Project (e.g. on a website, on social media, in a
537
- curriculum vitae, in interviews etc.) You agree that You will not do this unless You have received confirmation from Us
538
- that we have used Your Contribution in the Project.
539
-
540
- **5. REPRESENTATIONS**
541
-
542
- 5.1. You confirm that:
543
-
544
- 5.1.1. You have the legal authority to enter into this Agreement.
545
-
546
- 5.1.2. You are legally entitled to grant the licences in clause 2 and the grant of these licences will not infringe any
547
- third party rights.
548
-
549
- 5.1.3. If You are under eighteen years of age, You have Your parent(s)’ or guardian(s)’ permission to Contribute to the
550
- Project and enter into this Agreement.
551
-
552
- 5.1.4. If Your Contribution is made in the course of Your employment (or any other working relationship) or Your
553
- employer (or anyone else for whom you are working) has intellectual property rights in Your Contribution, You have
554
- secured permission from Your employer to make the Contribution on the terms of this Agreement.
555
-
556
- 5.1.5. Each of Your Contributions is entirely Your original work.
557
-
558
- 5.1.6. You will not Submit Contributions that contain Code or other material, the use of which is restricted by a
559
- licence or by some other means, which:
560
-
561
- 5.1.6.1. is incompatible with the licence grants in clause 2 of this Agreement; or
562
-
563
- 5.1.6.2. would result in Us being unable to freely use that part of Your Contribution in the Project and/or onward
564
- license it under the GNU Affero General Public License Version 3, 19 November 2007.
565
-
566
- 5.2. Unless required by applicable law and except for the warranties in clause 5.1, Your Contribution is provided
567
- “as is” and without express or implied warranty of any kind, including any warranty of merchantability, fitness for a
568
- particular purpose and non-infringement.
569
-
570
- **6. MISCELLANEOUS**
571
-
572
- 6.1. This Agreement and any non-contractual obligations arising out of or in connection with it shall be governed by and
573
- construed in accordance with English law and the parties submit to the irrevocable jurisdiction of the English courts.
574
-
575
- 6.2. This Agreement is the entire agreement between You and Us, and supersedes any and all prior agreements,
576
- understandings or communications, written or oral, between You and Us relating to its subject matter. This Agreement may
577
- be assigned by Us.