unisi 0.2.1__py3-none-any.whl → 0.2.2__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.
- unisi/units.py +6 -2
- {unisi-0.2.1.dist-info → unisi-0.2.2.dist-info}/METADATA +1 -1
- {unisi-0.2.1.dist-info → unisi-0.2.2.dist-info}/RECORD +6 -6
- {unisi-0.2.1.dist-info → unisi-0.2.2.dist-info}/WHEEL +0 -0
- {unisi-0.2.1.dist-info → unisi-0.2.2.dist-info}/entry_points.txt +0 -0
- {unisi-0.2.1.dist-info → unisi-0.2.2.dist-info}/licenses/LICENSE +0 -0
unisi/units.py
CHANGED
@@ -57,11 +57,15 @@ class Unit:
|
|
57
57
|
self.add(kwargs)
|
58
58
|
|
59
59
|
def set_reactivity(self, user, override = False):
|
60
|
+
changed_call = None
|
60
61
|
if user:
|
61
62
|
if not hasattr(self, 'id') and (override or not self._mark_changed):
|
63
|
+
self.__dict__.update({property : ChangedProxy(value, self) for property, value in self.__dict__.items()
|
64
|
+
if not isinstance(value, atomics) and not callable(value)})
|
65
|
+
|
62
66
|
def changed_call(property = None, value = None):
|
63
|
-
user.register_changed_unit(self, property, value)
|
64
|
-
|
67
|
+
user.register_changed_unit(self, property, value)
|
68
|
+
super().__setattr__('_mark_changed', changed_call)
|
65
69
|
|
66
70
|
def add(self, kwargs):
|
67
71
|
for key, value in kwargs.items():
|
@@ -1,7 +1,7 @@
|
|
1
|
-
unisi-0.2.
|
2
|
-
unisi-0.2.
|
3
|
-
unisi-0.2.
|
4
|
-
unisi-0.2.
|
1
|
+
unisi-0.2.2.dist-info/METADATA,sha256=JraOynoxJ1-FhseemfP-Fb6lV6j2nk7FK2bSuiDTHY4,24388
|
2
|
+
unisi-0.2.2.dist-info/WHEEL,sha256=Vza3XR51HW1KmFP0iIMUVYIvz0uQuKJpIXKYOBGQyFQ,90
|
3
|
+
unisi-0.2.2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
+
unisi-0.2.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
5
5
|
unisi/__init__.py,sha256=a4I_tbvmIh5STXoirJiP0v_HSlOnzRY4bN4nViR7uZw,257
|
6
6
|
unisi/autotest.py,sha256=BpHrib08cP0EMBVQACr4CsFI3DTxXLn3Ou555lupzgk,8716
|
7
7
|
unisi/common.py,sha256=YF1e0eRjk5udMvZpHmPpD2foVeSlto9wASusz0gOwVU,4401
|
@@ -19,7 +19,7 @@ unisi/proxy.py,sha256=aFZXMaCIy43r-TbR0Ff9NNDwmpg_SZ27oS5Y4p5c_uY,7697
|
|
19
19
|
unisi/reloader.py,sha256=ZKWBR30Ho-cwbuWX4x05XRryBqA6YcVccBQf4xmJyw0,6585
|
20
20
|
unisi/server.py,sha256=-Z8jjcitf6vxZoO97_0CvvIjAuyB0zbFytuLigiU4WI,4411
|
21
21
|
unisi/tables.py,sha256=My0xz5j9HhzvDiFwwyIK62YbJb7-0KXIm68xSGvC1u8,13766
|
22
|
-
unisi/units.py,sha256=
|
22
|
+
unisi/units.py,sha256=aQk2VP6sRqdlhT-T-ImS1uJL7xwtgdk6iJ7dbO34Now,9543
|
23
23
|
unisi/users.py,sha256=sh0sDT0R0D-zzyYFqSwOWdWaNAQ6bvALiy0zVeTlJ6w,16289
|
24
24
|
unisi/utils.py,sha256=o1t9N7GMVUy9Le2570PK0hVEsjxS5-aMKiwhvhRwZOg,2491
|
25
25
|
unisi/web/css/634.b849c5e5.css,sha256=XIal3jcbcHaqtGZdFWHWFZlkjkqa40vv-Q9bcGqPwPE,2691
|
@@ -44,4 +44,4 @@ unisi/web/js/430.591e9a73.js,sha256=7S1CJTwGdE2EKXzeFRcaYuTrn0QteoVI03Hykz8qh3s,
|
|
44
44
|
unisi/web/js/634.a1d03f44.js,sha256=uJjzR1JPOnqW_FBLckIeusRxm_2zvAaheFunE6fx6SY,60413
|
45
45
|
unisi/web/js/app.2ef552e1.js,sha256=Ig1H8i6cJ0Jz_i4bM1VKK_8MjiHw38g9vi3m04y12Ik,5901
|
46
46
|
unisi/web/js/vendor.eab68489.js,sha256=kf7Bf302l1D1kmnVoG2888ZwR7boc9qLeiEOoxa_UA0,1279366
|
47
|
-
unisi-0.2.
|
47
|
+
unisi-0.2.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|