simo 1.6.3__py3-none-any.whl → 1.6.4__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/api.py CHANGED
@@ -3,7 +3,6 @@ from calendar import monthrange
3
3
  import pytz
4
4
  import logging
5
5
  from django.db.models import Q, Prefetch
6
- from django.urls import get_script_prefix
7
6
  from django.utils.translation import gettext_lazy as _
8
7
  from django.utils import timezone
9
8
  from django.shortcuts import get_object_or_404
@@ -1,5 +1,4 @@
1
1
  from dal import autocomplete
2
- from django.urls import get_script_prefix
3
2
  from django.db.models import Q
4
3
  from django.template.loader import render_to_string
5
4
  from simo.core.utils.helpers import search_queryset
@@ -24,7 +23,7 @@ class IconModelAutocomplete(autocomplete.Select2QuerySetView):
24
23
  def get_result_label(self, item):
25
24
  return render_to_string(
26
25
  'core/icon_acutocomplete_select_item.html', {
27
- 'icon': item, 'prefix': get_script_prefix()[:-1]
26
+ 'icon': item,
28
27
  }
29
28
  )
30
29
 
@@ -70,7 +69,7 @@ class CategoryAutocomplete(autocomplete.Select2QuerySetView):
70
69
  def get_result_label(self, item):
71
70
  return render_to_string(
72
71
  'core/object_acutocomplete_select_item.html', {
73
- 'object': item, 'prefix': get_script_prefix()[:-1]
72
+ 'object': item
74
73
  }
75
74
  )
76
75
 
@@ -96,7 +95,7 @@ class ZoneAutocomplete(autocomplete.Select2QuerySetView):
96
95
  def get_result_label(self, item):
97
96
  return render_to_string(
98
97
  'core/object_acutocomplete_select_item.html', {
99
- 'object': item, 'prefix': get_script_prefix()[:-1]
98
+ 'object': item
100
99
  }
101
100
  )
102
101
 
@@ -133,7 +132,7 @@ class ComponentAutocomplete(autocomplete.Select2QuerySetView):
133
132
  def get_result_label(self, item):
134
133
  return render_to_string(
135
134
  'core/object_acutocomplete_select_item.html', {
136
- 'object': item, 'prefix': get_script_prefix()[:-1]
135
+ 'object': item
137
136
  }
138
137
  )
139
138
 
simo/core/middleware.py CHANGED
@@ -1,14 +1,9 @@
1
1
  import pytz
2
2
  import threading
3
- from django.urls import set_script_prefix, get_script_prefix
4
- from django.shortcuts import redirect, render
3
+ from django.urls import set_script_prefix
5
4
  from django.utils import timezone
6
- from django.conf import settings
7
- from simo.users.models import User
8
5
  from simo.conf import dynamic_settings
9
6
 
10
-
11
-
12
7
  _thread_locals = threading.local()
13
8
 
14
9
 
@@ -25,7 +20,6 @@ def simo_router_middleware(get_response):
25
20
  _thread_locals.request = request
26
21
 
27
22
  request.relay = None
28
- router_prefix = '/'
29
23
 
30
24
  if request.META.get('HTTP_HOST', '').endswith('.simo.io'):
31
25
  router_prefix = dynamic_settings['core__remote_http']
@@ -6,7 +6,7 @@ import os
6
6
  import logging
7
7
  from ansi2html import Ansi2HTMLConverter
8
8
  from asgiref.sync import sync_to_async
9
- from django.urls import set_script_prefix, get_script_prefix
9
+ from django.urls import set_script_prefix
10
10
  from django.core.exceptions import ValidationError
11
11
  from django.template.loader import render_to_string
12
12
  from django.conf import settings
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simo
3
- Version: 1.6.3
3
+ Version: 1.6.4
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
@@ -14,12 +14,12 @@ simo/_hub_template/hub/settings.py,sha256=4QhvhbtLRxHvAntwqG_qeAAtpDUqKvN4jzw9u3
14
14
  simo/_hub_template/hub/urls.py,sha256=Ydm-1BkYAzWeEF-MKSDIFf-7aE4qNLPm48-SA51XgJQ,25
15
15
  simo/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  simo/core/admin.py,sha256=4l2XFoI9yUoOuQkyYdpwxt-PGj-VTVcMb-BiA_NHYok,16588
17
- simo/core/api.py,sha256=6X1oJTp28g7Xt1Wcc_C1TyFqXvbQ87vEtDdSbVz0Lgo,19219
17
+ simo/core/api.py,sha256=AZBNVfi75XeoRU-VctlhHr25uIymuAn_cec4fNzUpAU,19177
18
18
  simo/core/api_auth.py,sha256=8Pp6Rcn3aL5hpQpW2Ph5XZ1rWnN1MIFvium8zlbzSwQ,1108
19
19
  simo/core/app_widgets.py,sha256=SP1txwI8_robAapIjalciS1cnJGoPH6udi6-k3fGC-g,1928
20
20
  simo/core/apps.py,sha256=T41TluDrtjzZ8T5LcvA5OnImmn08HB9tXk1SkZ52k3I,899
21
21
  simo/core/auto_urls.py,sha256=YZcvHqmAs4_azA_F_yz3CBsxrHAGijOPHib3SJCAoR0,1089
22
- simo/core/autocomplete_views.py,sha256=gPl0OeBypnPyhHEuRomrGLft8ho_2YnfQbewnTg1iSw,4034
22
+ simo/core/autocomplete_views.py,sha256=ygbVEOfyygWNy2BanB46Ov0NfWxBFAwwKp5CqAkrGMc,3849
23
23
  simo/core/base_types.py,sha256=OkRoAHp8P3r79k3IlUzkhycqlHDkeq7AAhOgsz7qGz8,552
24
24
  simo/core/context.py,sha256=xmGQ5h6HXw9-_XTuJSXyNiWDRHAVauqGCxmSJo0mxjE,1261
25
25
  simo/core/controllers.py,sha256=pP93QRFdCDRdo-yOqZTHD_LBRkbM-LWeGwWpDanS6os,22836
@@ -29,13 +29,13 @@ simo/core/filters.py,sha256=ghtOZcrwNAkIyF5_G9Sn73NkiI71mXv0NhwCk4IyMIM,411
29
29
  simo/core/forms.py,sha256=s-Cjw--vibCmxk6IQ_4M5IQOMuE3Z8re75NFPPmi4O4,19735
30
30
  simo/core/gateways.py,sha256=pFTOAfiglyGZ-6NCAHZZs1Lhnp0rVb3IhNc1vX7cZmY,2563
31
31
  simo/core/loggers.py,sha256=EBdq23gTQScVfQVH-xeP90-wII2DQFDjoROAW6ggUP4,1645
32
- simo/core/middleware.py,sha256=dHrdJdIWuxkQj9NGcpReVyXb0pA0vN-j6VivVDYbjHA,1728
32
+ simo/core/middleware.py,sha256=2EELD2mMWpPl3ispu2Yl7zeXUZp7s-PAJm-W-3BRsF0,1565
33
33
  simo/core/models.py,sha256=m912O5z4fLYRGY58e5t4ZGZvKL06QPG_K5j4OWwLRYc,17862
34
34
  simo/core/permissions.py,sha256=1GI59JZxl_sL9qzSt2uhoOnYnORDmcOJ8Fb37LbrhJE,576
35
35
  simo/core/routing.py,sha256=X1_IHxyA-_Q7hw1udDoviVP4_FSBDl8GYETTC2zWTbY,499
36
36
  simo/core/serializers.py,sha256=IX5Lnhq6v8tYVFysz7w5K7QelK3fVXOjTUMjuomzbBs,4200
37
37
  simo/core/signal_receivers.py,sha256=sTHwSnCnBaZKFwTSEspkkH490GF7Paxar6KxyoWlh1I,3361
38
- simo/core/socket_consumers.py,sha256=u73FDyGpKR05V0WvQOyPe9TWYncAIe5vJSTVw1yJLfc,9658
38
+ simo/core/socket_consumers.py,sha256=gF6QVVr1T60IFSwx4dS8jlkUifRPlFqVrQq2AL4e5UY,9639
39
39
  simo/core/storage.py,sha256=46x-20HXGa-_gHUBFZYYL72FoR3jjOaYt-i7QDHezzM,981
40
40
  simo/core/tasks.py,sha256=jZKctxcEiO3sqVlkWRuDzeYrA77H_9hAc48mfTmOz_w,10225
41
41
  simo/core/todos.py,sha256=eYVXfLGiapkxKK57XuviSNe3WsUYyIWZ0hgQJk7ThKo,665
@@ -154,8 +154,8 @@ simo/users/migrations/0015_remove_user_at_home.py,sha256=rEpLyrmKLL24Mzm2icrdi0A
154
154
  simo/users/migrations/0016_auto_20231005_1050.py,sha256=PlvqGjJFk0oyd7zd1ZL4urbRj0cMBPICkcQtU04O64Y,719
155
155
  simo/users/migrations/0017_auto_20231221_0735.py,sha256=u7o6-f4WB_MiMVNayl4ERBo3oQxgGvMMIMtClo7vPQQ,506
156
156
  simo/users/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
157
- simo-1.6.3.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
158
- simo-1.6.3.dist-info/METADATA,sha256=H6XvQAVXb0QuwgOtJKu9Iohb-sJAL-3G-MLJHduIHXM,1748
159
- simo-1.6.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
160
- simo-1.6.3.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
161
- simo-1.6.3.dist-info/RECORD,,
157
+ simo-1.6.4.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
158
+ simo-1.6.4.dist-info/METADATA,sha256=YnV8O01KrQ47L3AkjpXVvddzEVkMaBAfaq7tRwyboh4,1748
159
+ simo-1.6.4.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
160
+ simo-1.6.4.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
161
+ simo-1.6.4.dist-info/RECORD,,
File without changes