arthexis 0.1.5__py3-none-any.whl → 0.1.6__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.5.dist-info → arthexis-0.1.6.dist-info}/METADATA +1 -1
- {arthexis-0.1.5.dist-info → arthexis-0.1.6.dist-info}/RECORD +9 -9
- core/admin.py +14 -2
- nodes/admin.py +13 -1
- nodes/tests.py +0 -5
- nodes/views.py +0 -1
- {arthexis-0.1.5.dist-info → arthexis-0.1.6.dist-info}/WHEEL +0 -0
- {arthexis-0.1.5.dist-info → arthexis-0.1.6.dist-info}/licenses/LICENSE +0 -0
- {arthexis-0.1.5.dist-info → arthexis-0.1.6.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
arthexis-0.1.
|
|
1
|
+
arthexis-0.1.6.dist-info/licenses/LICENSE,sha256=rBjcKtvD5yIpzAnkw3XRofK8KCAeL43DXmNaiRuYJrg,1092
|
|
2
2
|
config/__init__.py,sha256=5EyLFDrM6aTOHSnyBcLXRvMInZMPmAAy9Icu0cHHK5o,110
|
|
3
3
|
config/active_app.py,sha256=MET_G7oHL7GkoSo3VkkMzymM-PwsSZazMLZxpgjFLTo,388
|
|
4
4
|
config/asgi.py,sha256=n09URedOmQ_59II3UCl3iodGSDWOuN_A8DFyfLjuylA,803
|
|
@@ -13,7 +13,7 @@ config/settings.py,sha256=1Ix8ee5S6SP7z51sLK5g3ejNr524xEJj_0LpeJsICuI,10854
|
|
|
13
13
|
config/urls.py,sha256=mgC0PqY1JBH6GdOxM6A_p5rDzx9vDoEVAOrH36DWSB4,2991
|
|
14
14
|
config/wsgi.py,sha256=Fu-ONO2SgYeU6rhmy909P-uLX-n8ALJQObdm9MHPS-k,450
|
|
15
15
|
core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
|
-
core/admin.py,sha256=
|
|
16
|
+
core/admin.py,sha256=lriV3FH5XV4FK79rvC-SZ5ksdF1Bt0FHNzyPRarSwQg,28150
|
|
17
17
|
core/apps.py,sha256=fr4s_sNGe6gmSP4OPw-zDukIXpLkRnGzzW2h01Hg1f0,2577
|
|
18
18
|
core/backends.py,sha256=f8gb5D3_f8sM6UJop0aS8TAkrkh14NaP0JrqTcT_L3Y,2686
|
|
19
19
|
core/entity.py,sha256=Ok2dj-Hd5kJjzXaHIEIIfPY52nmucEmkH8mLO3N-10A,3107
|
|
@@ -32,15 +32,15 @@ core/user_data.py,sha256=pfi4fgHl0CosG9jkfe__bSNN-Knhnzp7UirnCT_tae8,12029
|
|
|
32
32
|
core/views.py,sha256=tyT5mPlKVkGqk-q-yQrscmBE3SP8ZBCibeMAnhxSjOY,15872
|
|
33
33
|
nodes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
34
|
nodes/actions.py,sha256=2QOtRdhm__4f0Pgy3n2tg9HCbS47ZK9qBdTXJ9YZJfA,2339
|
|
35
|
-
nodes/admin.py,sha256=
|
|
35
|
+
nodes/admin.py,sha256=J4aIFsjYResXYJ26bkITY4ApYi9_rNtkyqWi3IY45h0,13293
|
|
36
36
|
nodes/apps.py,sha256=n1ZEsw5p6eYKaXEmachkT1saqQNLzeLExKyiYsoMazY,2297
|
|
37
37
|
nodes/lcd.py,sha256=axttp6AhKO2QMMXAf6nPe3Ox7nrBP-8yZD_oDUfMAvI,5602
|
|
38
38
|
nodes/models.py,sha256=wO8ppIVJLU26Kmab6FfPb9y3ROgVCuBs7Xd1hdSOkdQ,20887
|
|
39
39
|
nodes/tasks.py,sha256=1YeUqwSvqqTisusH-25nMQJCMQY2faEyDVrcBYqQghU,1588
|
|
40
|
-
nodes/tests.py,sha256=
|
|
40
|
+
nodes/tests.py,sha256=WZX3S4z362qPrYpBT-Ek3_z-O6HXGtCgYOrybnFuE6k,42950
|
|
41
41
|
nodes/urls.py,sha256=20yZDZf4DNgIZ9hQWsUzjp8k5Fryg9ukk761_KGQt9k,548
|
|
42
42
|
nodes/utils.py,sha256=aVEHtoisHyhWe_Fy2KPiP24Fs0wELtQMyfs4JGYnkuY,2320
|
|
43
|
-
nodes/views.py,sha256=
|
|
43
|
+
nodes/views.py,sha256=LISm9jqIdyUwQm45PegGg8RvmGRZH1jvCTCC14owRdQ,8444
|
|
44
44
|
ocpp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
45
|
ocpp/admin.py,sha256=9A_uLUg7l9DiqJq1foy47oFLb7zPuBOJeS73p7l0M0k,11851
|
|
46
46
|
ocpp/apps.py,sha256=QXwvJt1TnJKzxhZOSbyPjDIByLNhkBxu3_TQtZVoRB4,751
|
|
@@ -67,7 +67,7 @@ pages/tests.py,sha256=3swTFfuMI9mYJ3XgFQlqgVpj5Ojp6j0_6VMAVTI0J4g,27103
|
|
|
67
67
|
pages/urls.py,sha256=glhQExK2vVLzzvaRypWfmMdnggBrpjlxCaN1BUbC_MY,457
|
|
68
68
|
pages/utils.py,sha256=bCcjku0mQhzgvTR46QwQgyc8YnSS7VumC6Qv968aCic,313
|
|
69
69
|
pages/views.py,sha256=8CZcf-LW2KwZnQjZkB3TFoTN2wFNI-gnMlvMi9o3FMs,7073
|
|
70
|
-
arthexis-0.1.
|
|
71
|
-
arthexis-0.1.
|
|
72
|
-
arthexis-0.1.
|
|
73
|
-
arthexis-0.1.
|
|
70
|
+
arthexis-0.1.6.dist-info/METADATA,sha256=JSr4_O-3aw0_PzIn4I_r_nvb1-iCs0oeb4khO0T66W8,4510
|
|
71
|
+
arthexis-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
72
|
+
arthexis-0.1.6.dist-info/top_level.txt,sha256=J2a2q8_BWrCZ8H2WFUNMBfO2jz8j2gax6zZh-_1QDac,29
|
|
73
|
+
arthexis-0.1.6.dist-info/RECORD,,
|
core/admin.py
CHANGED
|
@@ -38,7 +38,7 @@ from .models import (
|
|
|
38
38
|
Reference,
|
|
39
39
|
OdooProfile,
|
|
40
40
|
FediverseProfile,
|
|
41
|
-
EmailInbox,
|
|
41
|
+
EmailInbox as CoreEmailInbox,
|
|
42
42
|
Package,
|
|
43
43
|
PackageRelease,
|
|
44
44
|
ReleaseManager,
|
|
@@ -380,6 +380,14 @@ class FediverseProfileAdmin(admin.ModelAdmin):
|
|
|
380
380
|
self.message_user(request, f"{profile}: {exc}", level=messages.ERROR)
|
|
381
381
|
|
|
382
382
|
|
|
383
|
+
class EmailInbox(CoreEmailInbox):
|
|
384
|
+
class Meta:
|
|
385
|
+
proxy = True
|
|
386
|
+
app_label = "post_office"
|
|
387
|
+
verbose_name = CoreEmailInbox._meta.verbose_name
|
|
388
|
+
verbose_name_plural = CoreEmailInbox._meta.verbose_name_plural
|
|
389
|
+
|
|
390
|
+
|
|
383
391
|
class EmailInboxAdminForm(forms.ModelForm):
|
|
384
392
|
"""Admin form for :class:`core.models.EmailInbox` with hidden password."""
|
|
385
393
|
|
|
@@ -390,7 +398,7 @@ class EmailInboxAdminForm(forms.ModelForm):
|
|
|
390
398
|
)
|
|
391
399
|
|
|
392
400
|
class Meta:
|
|
393
|
-
model =
|
|
401
|
+
model = CoreEmailInbox
|
|
394
402
|
fields = "__all__"
|
|
395
403
|
|
|
396
404
|
def __init__(self, *args, **kwargs):
|
|
@@ -445,6 +453,10 @@ class EmailInboxAdmin(admin.ModelAdmin):
|
|
|
445
453
|
),
|
|
446
454
|
)
|
|
447
455
|
|
|
456
|
+
def save_model(self, request, obj, form, change):
|
|
457
|
+
super().save_model(request, obj, form, change)
|
|
458
|
+
obj.__class__ = EmailInbox
|
|
459
|
+
|
|
448
460
|
@admin.action(description="Test selected inboxes")
|
|
449
461
|
def test_connection(self, request, queryset):
|
|
450
462
|
for inbox in queryset:
|
nodes/admin.py
CHANGED
|
@@ -18,7 +18,7 @@ from .actions import NodeAction
|
|
|
18
18
|
|
|
19
19
|
from .models import (
|
|
20
20
|
Node,
|
|
21
|
-
EmailOutbox,
|
|
21
|
+
EmailOutbox as NodeEmailOutbox,
|
|
22
22
|
NodeRole,
|
|
23
23
|
ContentSample,
|
|
24
24
|
NodeTask,
|
|
@@ -181,10 +181,22 @@ class NodeAdmin(admin.ModelAdmin):
|
|
|
181
181
|
return redirect(reverse("admin:nodes_node_change", args=[node_id]))
|
|
182
182
|
|
|
183
183
|
|
|
184
|
+
class EmailOutbox(NodeEmailOutbox):
|
|
185
|
+
class Meta:
|
|
186
|
+
proxy = True
|
|
187
|
+
app_label = "post_office"
|
|
188
|
+
verbose_name = NodeEmailOutbox._meta.verbose_name
|
|
189
|
+
verbose_name_plural = NodeEmailOutbox._meta.verbose_name_plural
|
|
190
|
+
|
|
191
|
+
|
|
184
192
|
@admin.register(EmailOutbox)
|
|
185
193
|
class EmailOutboxAdmin(admin.ModelAdmin):
|
|
186
194
|
list_display = ("node", "host", "port", "username", "use_tls", "use_ssl")
|
|
187
195
|
|
|
196
|
+
def save_model(self, request, obj, form, change):
|
|
197
|
+
super().save_model(request, obj, form, change)
|
|
198
|
+
obj.__class__ = EmailOutbox
|
|
199
|
+
|
|
188
200
|
|
|
189
201
|
class NodeRoleAdminForm(forms.ModelForm):
|
|
190
202
|
nodes = forms.ModelMultipleChoiceField(
|
nodes/tests.py
CHANGED
|
@@ -560,11 +560,6 @@ class NetMessageAdminTests(TransactionTestCase):
|
|
|
560
560
|
class LastNetMessageViewTests(TestCase):
|
|
561
561
|
def setUp(self):
|
|
562
562
|
self.client = Client()
|
|
563
|
-
User = get_user_model()
|
|
564
|
-
self.user = User.objects.create_user(
|
|
565
|
-
username="lastmsg", password="pwd"
|
|
566
|
-
)
|
|
567
|
-
self.client.force_login(self.user)
|
|
568
563
|
NodeRole.objects.get_or_create(name="Terminal")
|
|
569
564
|
|
|
570
565
|
def test_returns_latest_message(self):
|
nodes/views.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|