simo 2.3.6__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.

Binary file
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 not (request.user.is_authenticated and request.user.is_master):
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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simo
3
- Version: 2.3.6
3
+ Version: 2.3.7
4
4
  Summary: Smart Home on Steroids!
5
5
  Author-email: Simanas Venčkauskas <simanas@simo.io>
6
6
  Project-URL: Homepage, https://simo.io
@@ -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=Kh5tOkPs3WCOd3XF3PZ3XdYjNi_OVRLpMq9T_xiabgc,2732
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=772H1Rvn1tRE0owdCMFNzd_ql_PFFST_TRFl3E3GMOs,14211
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=C9v8kFb4BvD8TCvbSGpRRYH0xtoOM3nId2VaId5jmiA,2408
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=0L_HDgv8LCTX3zQSniEF-uH1pdr1tMxa3yCeZEMFvhs,9773
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.6.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10521
- simo-2.3.6.dist-info/METADATA,sha256=a9X6k-TUA5MHLUmXQiCure-2esr9ZNNvVOsAyBamzsM,1878
10522
- simo-2.3.6.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
10523
- simo-2.3.6.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
10524
- simo-2.3.6.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10525
- simo-2.3.6.dist-info/RECORD,,
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