arthexis 0.1.16__py3-none-any.whl → 0.1.26__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.
Potentially problematic release.
This version of arthexis might be problematic. Click here for more details.
- {arthexis-0.1.16.dist-info → arthexis-0.1.26.dist-info}/METADATA +84 -35
- arthexis-0.1.26.dist-info/RECORD +111 -0
- config/asgi.py +1 -15
- config/middleware.py +47 -1
- config/settings.py +15 -30
- config/urls.py +53 -1
- core/admin.py +540 -450
- core/apps.py +0 -6
- core/auto_upgrade.py +19 -4
- core/backends.py +13 -3
- core/changelog.py +66 -5
- core/environment.py +4 -5
- core/models.py +1566 -203
- core/notifications.py +1 -1
- core/reference_utils.py +10 -11
- core/release.py +55 -7
- core/sigil_builder.py +2 -2
- core/sigil_resolver.py +1 -66
- core/system.py +268 -2
- core/tasks.py +174 -48
- core/tests.py +314 -16
- core/user_data.py +42 -2
- core/views.py +278 -183
- nodes/admin.py +557 -65
- nodes/apps.py +11 -0
- nodes/models.py +658 -113
- nodes/rfid_sync.py +1 -1
- nodes/tasks.py +97 -2
- nodes/tests.py +1212 -116
- nodes/urls.py +15 -1
- nodes/utils.py +51 -3
- nodes/views.py +1239 -154
- ocpp/admin.py +979 -152
- ocpp/consumers.py +268 -28
- ocpp/models.py +488 -3
- ocpp/network.py +398 -0
- ocpp/store.py +6 -4
- ocpp/tasks.py +296 -2
- ocpp/test_export_import.py +1 -0
- ocpp/test_rfid.py +121 -4
- ocpp/tests.py +950 -11
- ocpp/transactions_io.py +9 -1
- ocpp/urls.py +3 -3
- ocpp/views.py +596 -51
- pages/admin.py +262 -30
- pages/apps.py +35 -0
- pages/context_processors.py +26 -21
- pages/defaults.py +1 -1
- pages/forms.py +31 -8
- pages/middleware.py +6 -2
- pages/models.py +77 -2
- pages/module_defaults.py +5 -5
- pages/site_config.py +137 -0
- pages/tests.py +885 -109
- pages/urls.py +13 -2
- pages/utils.py +70 -0
- pages/views.py +558 -55
- arthexis-0.1.16.dist-info/RECORD +0 -111
- core/workgroup_urls.py +0 -17
- core/workgroup_views.py +0 -94
- {arthexis-0.1.16.dist-info → arthexis-0.1.26.dist-info}/WHEEL +0 -0
- {arthexis-0.1.16.dist-info → arthexis-0.1.26.dist-info}/licenses/LICENSE +0 -0
- {arthexis-0.1.16.dist-info → arthexis-0.1.26.dist-info}/top_level.txt +0 -0
ocpp/transactions_io.py
CHANGED
|
@@ -46,6 +46,7 @@ def export_transactions(
|
|
|
46
46
|
"charger": tx.charger.charger_id if tx.charger else None,
|
|
47
47
|
"account": tx.account_id,
|
|
48
48
|
"rfid": tx.rfid,
|
|
49
|
+
"vid": tx.vehicle_identifier,
|
|
49
50
|
"vin": tx.vin,
|
|
50
51
|
"meter_start": tx.meter_start,
|
|
51
52
|
"meter_stop": tx.meter_stop,
|
|
@@ -144,11 +145,18 @@ def import_transactions(data: dict) -> int:
|
|
|
144
145
|
except ValidationError:
|
|
145
146
|
continue
|
|
146
147
|
charger_map[serial] = charger
|
|
148
|
+
vid_value = tx.get("vid")
|
|
149
|
+
vin_value = tx.get("vin")
|
|
150
|
+
vid_text = str(vid_value).strip() if vid_value is not None else ""
|
|
151
|
+
vin_text = str(vin_value).strip() if vin_value is not None else ""
|
|
152
|
+
if not vid_text and vin_text:
|
|
153
|
+
vid_text = vin_text
|
|
147
154
|
transaction = Transaction.objects.create(
|
|
148
155
|
charger=charger,
|
|
149
156
|
account_id=tx.get("account"),
|
|
150
157
|
rfid=tx.get("rfid", ""),
|
|
151
|
-
|
|
158
|
+
vid=vid_text,
|
|
159
|
+
vin=vin_text,
|
|
152
160
|
meter_start=tx.get("meter_start"),
|
|
153
161
|
meter_stop=tx.get("meter_stop"),
|
|
154
162
|
voltage_start=tx.get("voltage_start"),
|
ocpp/urls.py
CHANGED
|
@@ -3,8 +3,8 @@ from django.urls import include, path
|
|
|
3
3
|
from . import views
|
|
4
4
|
|
|
5
5
|
urlpatterns = [
|
|
6
|
-
path("", views.dashboard, name="ocpp-dashboard"),
|
|
7
|
-
path("simulator/", views.cp_simulator, name="cp-simulator"),
|
|
6
|
+
path("cpms/dashboard/", views.dashboard, name="ocpp-dashboard"),
|
|
7
|
+
path("evcs/simulator/", views.cp_simulator, name="cp-simulator"),
|
|
8
8
|
path("chargers/", views.charger_list, name="charger-list"),
|
|
9
9
|
path("chargers/<str:cid>/", views.charger_detail, name="charger-detail"),
|
|
10
10
|
path(
|
|
@@ -46,5 +46,5 @@ urlpatterns = [
|
|
|
46
46
|
views.charger_status,
|
|
47
47
|
name="charger-status-connector",
|
|
48
48
|
),
|
|
49
|
-
path("rfid/", include("ocpp.rfid.urls")),
|
|
49
|
+
path("rfid/validator/", include("ocpp.rfid.urls")),
|
|
50
50
|
]
|