arthexis 0.1.13__py3-none-any.whl → 0.1.15__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 (108) hide show
  1. {arthexis-0.1.13.dist-info → arthexis-0.1.15.dist-info}/METADATA +224 -221
  2. arthexis-0.1.15.dist-info/RECORD +110 -0
  3. {arthexis-0.1.13.dist-info → arthexis-0.1.15.dist-info}/licenses/LICENSE +674 -674
  4. config/__init__.py +5 -5
  5. config/active_app.py +15 -15
  6. config/asgi.py +43 -43
  7. config/auth_app.py +7 -7
  8. config/celery.py +32 -32
  9. config/context_processors.py +67 -69
  10. config/horologia_app.py +7 -7
  11. config/loadenv.py +11 -11
  12. config/logging.py +59 -48
  13. config/middleware.py +25 -25
  14. config/offline.py +49 -49
  15. config/settings.py +691 -682
  16. config/settings_helpers.py +109 -109
  17. config/urls.py +171 -166
  18. config/wsgi.py +17 -17
  19. core/admin.py +3795 -2809
  20. core/admin_history.py +50 -50
  21. core/admindocs.py +151 -151
  22. core/apps.py +356 -272
  23. core/auto_upgrade.py +57 -57
  24. core/backends.py +265 -236
  25. core/changelog.py +342 -0
  26. core/entity.py +149 -133
  27. core/environment.py +61 -61
  28. core/fields.py +168 -168
  29. core/form_fields.py +75 -75
  30. core/github_helper.py +188 -25
  31. core/github_issues.py +178 -172
  32. core/github_repos.py +72 -0
  33. core/lcd_screen.py +78 -78
  34. core/liveupdate.py +25 -25
  35. core/log_paths.py +114 -100
  36. core/mailer.py +85 -85
  37. core/middleware.py +91 -91
  38. core/models.py +3637 -2795
  39. core/notifications.py +105 -105
  40. core/public_wifi.py +267 -227
  41. core/reference_utils.py +108 -108
  42. core/release.py +840 -368
  43. core/rfid_import_export.py +113 -0
  44. core/sigil_builder.py +149 -149
  45. core/sigil_context.py +20 -20
  46. core/sigil_resolver.py +315 -315
  47. core/system.py +952 -493
  48. core/tasks.py +408 -394
  49. core/temp_passwords.py +181 -181
  50. core/test_system_info.py +186 -139
  51. core/tests.py +2168 -1521
  52. core/tests_liveupdate.py +17 -17
  53. core/urls.py +11 -11
  54. core/user_data.py +641 -633
  55. core/views.py +2201 -1417
  56. core/widgets.py +213 -94
  57. core/workgroup_urls.py +17 -17
  58. core/workgroup_views.py +94 -94
  59. nodes/admin.py +1720 -1161
  60. nodes/apps.py +87 -85
  61. nodes/backends.py +160 -160
  62. nodes/dns.py +203 -203
  63. nodes/feature_checks.py +133 -133
  64. nodes/lcd.py +165 -165
  65. nodes/models.py +1764 -1597
  66. nodes/reports.py +411 -411
  67. nodes/rfid_sync.py +195 -0
  68. nodes/signals.py +18 -0
  69. nodes/tasks.py +46 -46
  70. nodes/tests.py +3830 -3116
  71. nodes/urls.py +15 -14
  72. nodes/utils.py +121 -105
  73. nodes/views.py +683 -619
  74. ocpp/admin.py +948 -948
  75. ocpp/apps.py +25 -25
  76. ocpp/consumers.py +1565 -1459
  77. ocpp/evcs.py +844 -844
  78. ocpp/evcs_discovery.py +158 -158
  79. ocpp/models.py +917 -917
  80. ocpp/reference_utils.py +42 -42
  81. ocpp/routing.py +11 -11
  82. ocpp/simulator.py +745 -745
  83. ocpp/status_display.py +26 -26
  84. ocpp/store.py +601 -541
  85. ocpp/tasks.py +31 -31
  86. ocpp/test_export_import.py +130 -130
  87. ocpp/test_rfid.py +913 -702
  88. ocpp/tests.py +4445 -4094
  89. ocpp/transactions_io.py +189 -189
  90. ocpp/urls.py +50 -50
  91. ocpp/views.py +1479 -1251
  92. pages/admin.py +769 -539
  93. pages/apps.py +10 -10
  94. pages/checks.py +40 -40
  95. pages/context_processors.py +127 -119
  96. pages/defaults.py +13 -13
  97. pages/forms.py +198 -198
  98. pages/middleware.py +209 -153
  99. pages/models.py +643 -426
  100. pages/tasks.py +74 -0
  101. pages/tests.py +3025 -2200
  102. pages/urls.py +26 -25
  103. pages/utils.py +23 -12
  104. pages/views.py +1176 -1128
  105. arthexis-0.1.13.dist-info/RECORD +0 -105
  106. nodes/actions.py +0 -70
  107. {arthexis-0.1.13.dist-info → arthexis-0.1.15.dist-info}/WHEEL +0 -0
  108. {arthexis-0.1.13.dist-info → arthexis-0.1.15.dist-info}/top_level.txt +0 -0
pages/urls.py CHANGED
@@ -1,25 +1,26 @@
1
- from django.urls import path
2
- from . import views
3
-
4
-
5
- app_name = "pages"
6
-
7
- urlpatterns = [
8
- path("", views.index, name="index"),
9
- path("sitemap.xml", views.sitemap, name="pages-sitemap"),
10
- path("client-report/", views.client_report, name="client-report"),
11
- path("release-checklist", views.release_checklist, name="release-checklist"),
12
- path("login/", views.login_view, name="login"),
13
- path("authenticator/setup/", views.authenticator_setup, name="authenticator-setup"),
14
- path("request-invite/", views.request_invite, name="request-invite"),
15
- path(
16
- "invitation/<uidb64>/<token>/",
17
- views.invitation_login,
18
- name="invitation-login",
19
- ),
20
- path("datasette-auth/", views.datasette_auth, name="datasette-auth"),
21
- path("man/", views.manual_list, name="manual-list"),
22
- path("man/<slug:slug>/", views.manual_detail, name="manual-detail"),
23
- path("man/<slug:slug>/pdf/", views.manual_pdf, name="manual-pdf"),
24
- path("feedback/user-story/", views.submit_user_story, name="user-story-submit"),
25
- ]
1
+ from django.urls import path
2
+ from . import views
3
+
4
+
5
+ app_name = "pages"
6
+
7
+ urlpatterns = [
8
+ path("", views.index, name="index"),
9
+ path("readme/", views.readme, name="readme"),
10
+ path("sitemap.xml", views.sitemap, name="pages-sitemap"),
11
+ path("client-report/", views.client_report, name="client-report"),
12
+ path("release-checklist", views.release_checklist, name="release-checklist"),
13
+ path("login/", views.login_view, name="login"),
14
+ path("authenticator/setup/", views.authenticator_setup, name="authenticator-setup"),
15
+ path("request-invite/", views.request_invite, name="request-invite"),
16
+ path(
17
+ "invitation/<uidb64>/<token>/",
18
+ views.invitation_login,
19
+ name="invitation-login",
20
+ ),
21
+ path("datasette-auth/", views.datasette_auth, name="datasette-auth"),
22
+ path("man/", views.manual_list, name="manual-list"),
23
+ path("man/<slug:slug>/", views.manual_detail, name="manual-detail"),
24
+ path("man/<slug:slug>/pdf/", views.manual_pdf, name="manual-pdf"),
25
+ path("feedback/user-story/", views.submit_user_story, name="user-story-submit"),
26
+ ]
pages/utils.py CHANGED
@@ -1,12 +1,23 @@
1
- from django.urls import path as django_path
2
-
3
-
4
- def landing(label=None):
5
- """Decorator to mark a view as a landing page."""
6
-
7
- def decorator(view):
8
- view.landing = True
9
- view.landing_label = label or view.__name__.replace("_", " ").title()
10
- return view
11
-
12
- return decorator
1
+ from django.urls import path as django_path
2
+
3
+
4
+ def landing(label=None):
5
+ """Decorator to mark a view as a landing page."""
6
+
7
+ def decorator(view):
8
+ view.landing = True
9
+ view.landing_label = label or view.__name__.replace("_", " ").title()
10
+ return view
11
+
12
+ return decorator
13
+
14
+
15
+ def landing_leads_supported() -> bool:
16
+ """Return ``True`` when the local node supports landing lead tracking."""
17
+
18
+ from nodes.models import Node
19
+
20
+ node = Node.get_local()
21
+ if not node:
22
+ return False
23
+ return node.has_feature("celery-queue")