simo 2.3.5__py3-none-any.whl → 2.3.7__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 simo might be problematic. Click here for more details.
- simo/core/__pycache__/middleware.cpython-38.pyc +0 -0
- simo/core/__pycache__/tasks.cpython-38.pyc +0 -0
- simo/core/context.py +5 -1
- simo/core/middleware.py +1 -1
- simo/core/tasks.py +7 -1
- {simo-2.3.5.dist-info → simo-2.3.7.dist-info}/METADATA +1 -1
- {simo-2.3.5.dist-info → simo-2.3.7.dist-info}/RECORD +11 -11
- {simo-2.3.5.dist-info → simo-2.3.7.dist-info}/LICENSE.md +0 -0
- {simo-2.3.5.dist-info → simo-2.3.7.dist-info}/WHEEL +0 -0
- {simo-2.3.5.dist-info → simo-2.3.7.dist-info}/entry_points.txt +0 -0
- {simo-2.3.5.dist-info → simo-2.3.7.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
simo/core/context.py
CHANGED
|
@@ -10,12 +10,16 @@ from simo.core.middleware import get_current_instance
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def additional_templates_context(request):
|
|
13
|
+
if not request.user.is_authenticated:
|
|
14
|
+
instances = Instance.objects.none()
|
|
15
|
+
else:
|
|
16
|
+
instances = request.user.instances
|
|
13
17
|
ctx = {
|
|
14
18
|
'hub_ip': get_self_ip(),
|
|
15
19
|
'dynamic_settings': dynamic_settings,
|
|
16
20
|
'current_version': pkg_resources.get_distribution('simo').version,
|
|
17
21
|
'update_available': is_update_available(True),
|
|
18
|
-
'instances':
|
|
22
|
+
'instances': instances,
|
|
19
23
|
'current_instance': get_current_instance()
|
|
20
24
|
}
|
|
21
25
|
|
simo/core/middleware.py
CHANGED
|
@@ -58,7 +58,7 @@ def instance_middleware(get_response):
|
|
|
58
58
|
def middleware(request):
|
|
59
59
|
|
|
60
60
|
if request.path.startswith('/admin'):
|
|
61
|
-
if
|
|
61
|
+
if request.user.is_authenticated and not request.user.is_master:
|
|
62
62
|
return render(request, 'admin/msg_page.html', {
|
|
63
63
|
'page_title': "You are not allowed in here",
|
|
64
64
|
'msg': "Page you are trying to access is only for hub masters.",
|
simo/core/tasks.py
CHANGED
|
@@ -92,6 +92,12 @@ def save_config(data):
|
|
|
92
92
|
)
|
|
93
93
|
except:
|
|
94
94
|
pass
|
|
95
|
+
try:
|
|
96
|
+
subprocess.run(
|
|
97
|
+
['service', 'openvpn', 'reload']
|
|
98
|
+
)
|
|
99
|
+
except:
|
|
100
|
+
pass
|
|
95
101
|
|
|
96
102
|
if vpn_change:
|
|
97
103
|
threading.Thread(target=restart_openvpn).start()
|
|
@@ -394,7 +400,7 @@ def maybe_update_to_latest():
|
|
|
394
400
|
print("Up to date!")
|
|
395
401
|
return
|
|
396
402
|
|
|
397
|
-
if not Instance.objects.all().count() or dynamic_settings['
|
|
403
|
+
if not Instance.objects.all().count() or dynamic_settings['core__auto_update']:
|
|
398
404
|
print("Need to update!!")
|
|
399
405
|
return update.s()
|
|
400
406
|
|
|
@@ -35,7 +35,7 @@ simo/core/apps.py,sha256=CsqpiQerhmrMsH-wGiG-gQgXd9qEkIi-LUaA9cXpKSw,425
|
|
|
35
35
|
simo/core/auto_urls.py,sha256=nNXEgLAAAQAhRWQDA9AbDtw-zcPKmu_pufJaSa8g818,1102
|
|
36
36
|
simo/core/autocomplete_views.py,sha256=JT5LA2_Wtr60XYSAIqaXFKFYPjrmkEf6yunXD9y2zco,4022
|
|
37
37
|
simo/core/base_types.py,sha256=qVh6MrXZEfN7bFOyFftC7u0yyz0PkvpsjllLBc6SCp4,616
|
|
38
|
-
simo/core/context.py,sha256=
|
|
38
|
+
simo/core/context.py,sha256=snfPIGcZQTrx8iiZc5PI91A0dRQH6y5kH4uG_lfhU6Q,1486
|
|
39
39
|
simo/core/controllers.py,sha256=rLgJqnEMzRC0GpZnQb0m_Cz43Gp2zaYbODU7UUxE5oA,29602
|
|
40
40
|
simo/core/dynamic_settings.py,sha256=bUs58XEZOCIEhg1TigR3LmYggli13KMryBZ9pC7ugAQ,1872
|
|
41
41
|
simo/core/events.py,sha256=LvtonJGNyCb6HLozs4EG0WZItnDwNdtnGQ4vTcnKvUs,4438
|
|
@@ -45,7 +45,7 @@ simo/core/forms.py,sha256=sFVz8tENhi4QSudORu_e5tlGEC0aXumy6wzJqQNYBPk,21904
|
|
|
45
45
|
simo/core/gateways.py,sha256=m0eS3XjVe34Dge6xtoCq16kFWCKJcdQrT0JW0REqoq8,3715
|
|
46
46
|
simo/core/loggers.py,sha256=EBdq23gTQScVfQVH-xeP90-wII2DQFDjoROAW6ggUP4,1645
|
|
47
47
|
simo/core/managers.py,sha256=n-b3I4uXzfHKTeB1VMjSaMsDUxp8FegFJwnbV1IsWQ4,3019
|
|
48
|
-
simo/core/middleware.py,sha256=
|
|
48
|
+
simo/core/middleware.py,sha256=1xKsaN0Ro5Fb2slB9FnlQdlDEdO4_kUGdnhA8rccBsA,2730
|
|
49
49
|
simo/core/models.py,sha256=hQA8SeAPtGRSs4gk-bci2Ni3ZANtS62V-IDgCyJh2qE,21563
|
|
50
50
|
simo/core/permissions.py,sha256=v0iJM4LOeYoEfMiw3OLPYio272G1aUEAg_z9Wd1q5m0,2993
|
|
51
51
|
simo/core/routing.py,sha256=X1_IHxyA-_Q7hw1udDoviVP4_FSBDl8GYETTC2zWTbY,499
|
|
@@ -53,7 +53,7 @@ simo/core/serializers.py,sha256=1hcCnLnItw8T3jLWivKBjSAt7kwqjcOYE0vaepw55Z0,2096
|
|
|
53
53
|
simo/core/signal_receivers.py,sha256=9-qFCCeSLcMFEMg6QUtKOVgUsoNoqhzGoI98nuNSTEo,6228
|
|
54
54
|
simo/core/socket_consumers.py,sha256=n7VE2Fvqt4iEAYLTRbTPOcI-7tszMAADu7gimBxB-Fg,9635
|
|
55
55
|
simo/core/storage.py,sha256=_5igjaoWZAiExGWFEJMElxUw55DzJG1jqFty33xe8BE,342
|
|
56
|
-
simo/core/tasks.py,sha256=
|
|
56
|
+
simo/core/tasks.py,sha256=dGgq9ZXjwiwN82YJPaoAU4OqC0ue5ITUfPn6t7Dt85s,14348
|
|
57
57
|
simo/core/todos.py,sha256=eYVXfLGiapkxKK57XuviSNe3WsUYyIWZ0hgQJk7ThKo,665
|
|
58
58
|
simo/core/types.py,sha256=WJEq48mIbFi_5Alt4wxWMGXxNxUTXqfQU5koH7wqHHI,1108
|
|
59
59
|
simo/core/views.py,sha256=VVqfEPzK0EdbVMMarkG8rd7cODG5QHpXnr3e8UdrTQE,2600
|
|
@@ -78,7 +78,7 @@ simo/core/__pycache__/forms.cpython-38.pyc,sha256=JDCNYJQrZHUaMb4qZ6A0f1JptoCHQK
|
|
|
78
78
|
simo/core/__pycache__/gateways.cpython-38.pyc,sha256=D1ooHL-iSpQrxnD8uAl4xWFJmm-QWZfbkLiLlFOMtdU,4553
|
|
79
79
|
simo/core/__pycache__/loggers.cpython-38.pyc,sha256=Z-cdQnC6XlIonPV4Sl4E52tP4NMEdPAiHK0cFaIL7I8,1623
|
|
80
80
|
simo/core/__pycache__/managers.cpython-38.pyc,sha256=6RTIxyjOgpQGtAqcUyE2vFPS09w1V5Wmd_vOV7rHRRI,3370
|
|
81
|
-
simo/core/__pycache__/middleware.cpython-38.pyc,sha256=
|
|
81
|
+
simo/core/__pycache__/middleware.cpython-38.pyc,sha256=OH2wvHHavuS4YYCgyvJd4GTrTCEV577CQ-ZBrTFuy6Y,2408
|
|
82
82
|
simo/core/__pycache__/models.cpython-38.pyc,sha256=h_neN4zzReOTuou4NX9RbgVJ8T47z0tLqSr37Fm1iHU,17874
|
|
83
83
|
simo/core/__pycache__/permissions.cpython-38.pyc,sha256=fH4iyqd9DdzRLEu2b621-FeM-napR0M7hzBUTHo9Q3g,2972
|
|
84
84
|
simo/core/__pycache__/routing.cpython-38.pyc,sha256=3T3FPJ8Cn99xZCGvMyg2xjl7al-Shm9CelbSpkJtNP8,599
|
|
@@ -86,7 +86,7 @@ simo/core/__pycache__/serializers.cpython-38.pyc,sha256=xsGMcx9ISHmvY_PzWqosUdkW
|
|
|
86
86
|
simo/core/__pycache__/signal_receivers.cpython-38.pyc,sha256=3Bt9S47DR_ZFS3O-crElFgLLXPIYyDgPIc2ibwEkaic,4904
|
|
87
87
|
simo/core/__pycache__/socket_consumers.cpython-38.pyc,sha256=NJUr7nRyHFvmAumxxWpsod5wzVVZM99rCEuJs1utHA4,8432
|
|
88
88
|
simo/core/__pycache__/storage.cpython-38.pyc,sha256=9R1Xu0FJDflfRXUPsqEgt0SpwiP7FGk7HaR8s8XRyI8,721
|
|
89
|
-
simo/core/__pycache__/tasks.cpython-38.pyc,sha256=
|
|
89
|
+
simo/core/__pycache__/tasks.cpython-38.pyc,sha256=y_DmQ2XjISJOkCGQczUcgO-MFB1V-0sBaLsbBF7_s50,9841
|
|
90
90
|
simo/core/__pycache__/todos.cpython-38.pyc,sha256=lOqGZ58siHM3isoJV4r7sg8igrfE9fFd-jSfeBa0AQI,253
|
|
91
91
|
simo/core/__pycache__/views.cpython-38.pyc,sha256=D7X_fFxYySe-mKNB4bEnIt9ubYM7CbbRcIpX52Ou4RE,2809
|
|
92
92
|
simo/core/__pycache__/widgets.cpython-38.pyc,sha256=sR0ZeHCHrhnNDBJuRrxp3zUsfBp0xrtF0xrK2TkQv1o,3520
|
|
@@ -10517,9 +10517,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10517
10517
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10518
10518
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10519
10519
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10520
|
-
simo-2.3.
|
|
10521
|
-
simo-2.3.
|
|
10522
|
-
simo-2.3.
|
|
10523
|
-
simo-2.3.
|
|
10524
|
-
simo-2.3.
|
|
10525
|
-
simo-2.3.
|
|
10520
|
+
simo-2.3.7.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10521
|
+
simo-2.3.7.dist-info/METADATA,sha256=RUUKABWNJP4tZpCL28AzKPEvGfrIO4FnhJPXS3LBAes,1878
|
|
10522
|
+
simo-2.3.7.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
10523
|
+
simo-2.3.7.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
|
|
10524
|
+
simo-2.3.7.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10525
|
+
simo-2.3.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|