simo 2.7.12__py3-none-any.whl → 2.7.13__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/generic/forms.py CHANGED
@@ -671,9 +671,10 @@ class AudioAlertConfigForm(BaseComponentForm):
671
671
 
672
672
 
673
673
  def save(self, commit=True):
674
+ obj = super().save(commit=commit)
674
675
  if commit and self.cleaned_data.get('sound') \
675
676
  and self.cleaned_data['sound'] != self.fields['sound'].initial:
676
- public_file = PublicFile(component=self.instance)
677
+ public_file = PublicFile(component=obj)
677
678
  public_file.file.save(
678
679
  self.cleaned_data['sound'].name, self.cleaned_data['sound'],
679
680
  save=True
@@ -685,5 +686,5 @@ class AudioAlertConfigForm(BaseComponentForm):
685
686
  org.delete()
686
687
  self.instance.config['public_file_id'] = public_file.id
687
688
  self.instance.config['duration'] = self.cleaned_data['sound'].duration
688
- #self.cleaned_data.pop('sound')
689
- return super().save(commit=commit)
689
+ self.instance.save()
690
+ return obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: simo
3
- Version: 2.7.12
3
+ Version: 2.7.13
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
@@ -10386,7 +10386,7 @@ simo/generic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10386
10386
  simo/generic/app_widgets.py,sha256=y8W3jR76Hh26O9pPQyg2SophMbYIOtAWD33MPKbB8Mg,856
10387
10387
  simo/generic/base_types.py,sha256=u3SlfpNYaCwkVBwomWgso4ODzL71ay9MhiAW-bxgnDU,341
10388
10388
  simo/generic/controllers.py,sha256=gqL1Evt-8Cq8MeHG-eV8aCtQ4St_gylE52wnXwOQUWU,46285
10389
- simo/generic/forms.py,sha256=fjin6h3JyVH7dP-YQ_snPnfP3djAR_abXBH4FqD0Y7M,25734
10389
+ simo/generic/forms.py,sha256=VVp0IflKabObfxWPrc4Q6oEs_Z8hEvwnmNB2gZmaCGQ,25732
10390
10390
  simo/generic/gateways.py,sha256=04FKHgg3_cWjhu-bxexgRFpKRavW6_StgugFcDYwkiQ,17471
10391
10391
  simo/generic/models.py,sha256=Adq7ipWK-renxJlNW-SZnAq2oGEOwKx8EdUWaKnfcVQ,7597
10392
10392
  simo/generic/routing.py,sha256=elQVZmgnPiieEuti4sJ7zITk1hlRxpgbotcutJJgC60,228
@@ -10395,7 +10395,7 @@ simo/generic/__pycache__/__init__.cpython-38.pyc,sha256=mLu54WS9KIl-pHwVCBKpsDFI
10395
10395
  simo/generic/__pycache__/app_widgets.cpython-38.pyc,sha256=D9b13pbMlirgHmjDnQhfLIDGSVINoSouHb4SWOeCRrs,1642
10396
10396
  simo/generic/__pycache__/base_types.cpython-38.pyc,sha256=aV5NdIuvXR-ItKpI__MwcyPZHD6Z882TFdgYkPCkr1I,493
10397
10397
  simo/generic/__pycache__/controllers.cpython-38.pyc,sha256=jJjwKVaDYyazrRGNjUFoY74nr_jX_DEnsC9KjyxZCgc,30427
10398
- simo/generic/__pycache__/forms.cpython-38.pyc,sha256=mCyRaYSqXVZxDFlEF4t0CPUe48ZbPGLcjsVVS4wbCM8,19321
10398
+ simo/generic/__pycache__/forms.cpython-38.pyc,sha256=JXaZ7iidF9GyfHY0DQSiox9rmGbEzU8c0tS9mpGNoDE,19342
10399
10399
  simo/generic/__pycache__/gateways.cpython-38.pyc,sha256=GIeMT51oZU2OCFD4eUDFdSRRYE0Qf14AcOr_gdUqG94,12705
10400
10400
  simo/generic/__pycache__/models.cpython-38.pyc,sha256=MZpum7syAFxuulf47K7gtUlJJ7xRD-IBUBAwUM1ZRnw,5825
10401
10401
  simo/generic/__pycache__/routing.cpython-38.pyc,sha256=xtxTUTBTdivzFyA5Wh7k-hUj1WDO_FiRq6HYXdbr9Ks,382
@@ -10618,9 +10618,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
10618
10618
  simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10619
10619
  simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10620
10620
  simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10621
- simo-2.7.12.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10622
- simo-2.7.12.dist-info/METADATA,sha256=DsdrTocx2YvL8_tIlq78umIwnESf0aQd0q8l2fEybgA,1953
10623
- simo-2.7.12.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
10624
- simo-2.7.12.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
10625
- simo-2.7.12.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10626
- simo-2.7.12.dist-info/RECORD,,
10621
+ simo-2.7.13.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
10622
+ simo-2.7.13.dist-info/METADATA,sha256=Dfh3VdJ-c5kB_5cRNa-EIIfN--LMdgEHt7tVD9cyDqo,1953
10623
+ simo-2.7.13.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
10624
+ simo-2.7.13.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
10625
+ simo-2.7.13.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
10626
+ simo-2.7.13.dist-info/RECORD,,
File without changes