Mose Müller
6ffb068f47
npm run build
2024-07-04 16:45:05 +02:00
Mose Müller
b91eaaaf90
npm run build
2024-07-04 12:49:28 +02:00
Mose Müller
25459949a0
npm run build
2024-07-04 12:44:46 +02:00
Mose Müller
3c48a23277
fix: ruff warning
2024-07-04 12:23:58 +02:00
Mose Müller
bfcf72fec7
npm run build
2024-07-04 12:20:07 +02:00
Mose Müller
7fdd08021a
ignore mypy error
2024-05-28 12:56:43 +02:00
Mose Müller
052bf79487
adds setattr validation to observable if validate_set decorator is used
2024-05-28 11:22:18 +02:00
Mose Müller
203cc0f0f5
adds validate_set decorator
2024-05-28 11:22:18 +02:00
Mose Müller
94cef50e03
combines two lines in _ObservableList.append
2024-05-27 15:22:30 +02:00
Mose Müller
84abd63d56
Merge branch 'main' into feature/ignore_coroutine
2024-05-27 15:08:14 +02:00
Mose Müller
999a6016ff
using __future__.annotations instead of quoted types
2024-05-27 14:51:49 +02:00
Mose Müller
19f91b7cf3
removes TaskDefinitionError
2024-05-27 14:42:54 +02:00
Mose Müller
d7e604992d
updates wording and formatting
2024-05-27 14:42:26 +02:00
Mose Müller
ba9dbc03f1
removes attribute key from observers dict if list of observers is empty
2024-05-21 14:03:21 +02:00
Mose Müller
f9a5352efe
moves lines adding weakref to mapping dict into _initialise_new_objects
...
This groups together all the lines that add elements to or get elements from the mapping dicts.
2024-05-21 13:42:25 +02:00
Mose Müller
9c5d133d65
fixes types
2024-05-21 10:51:13 +02:00
Martin Stadler
eacd5bc6b1
Skip coroutines with arguments instead of raising an exception
2024-05-20 17:41:57 +02:00
Martin Stadler
314e89ba38
Use weak references in dict/list mappping to avoid memory leak
2024-05-20 17:25:35 +02:00
Mose Müller
82b9c14af3
ignores mypy overrides error
2024-04-30 15:46:50 +02:00
Mose Müller
b209ad75bb
fixes serializer types and test
...
pydase dicts can only have stringed keys. This is now reflected in the serializer, as well.
2024-04-30 15:46:39 +02:00
Mose Müller
88a630518b
updates ProxyDict types, ignores mypy error
2024-04-30 15:42:48 +02:00
Mose Müller
36e30970c5
adds dict.pop to pydase.Client
...
The pop method removes the element in the dictionary on the server, but it will not
return anything. This is because pop will delete the element on the server, and returned
proxy classes will not be meaningful.
2024-04-30 15:24:15 +02:00
Mose Müller
3384d1bebf
adds dict.pop method to ObservableDict
2024-04-30 13:15:42 +02:00
Mose Müller
4d442cfadc
adds ProxyDict to pydase client
2024-04-30 11:50:15 +02:00
Mose Müller
ad4f926472
replaces ObservableDict key type warning with exception
2024-04-30 11:44:07 +02:00
Mose Müller
208dee2b92
dictionaries can only take strings now
...
The object serializations are passed through json.dumps before they are emitted to the
clients. JSON, apparently, can only handle keys of type string, which is why I have to
limit the dictionary key types to strings, as well.
2024-04-30 11:12:45 +02:00
Mose Müller
02b2d4fb10
observer: ignoring __annotations__ class attribute
2024-04-30 11:09:54 +02:00
Mose Müller
b2f59dd447
updates serializer type (dictionary object)
2024-04-30 10:51:52 +02:00
Mose Müller
33aa8708fd
frontend: fixes displayName for dotted dictionary keys
2024-04-30 10:02:46 +02:00
Mose Müller
37d698a1b2
fixes web settings (displayName for dotted dictionary keys)
2024-04-30 10:02:13 +02:00
Mose Müller
b9131c9df2
updates generate_serialized_data_paths to handle dictionaries well
2024-04-30 10:02:13 +02:00
Mose Müller
1c1584c2cf
fixes dictionary serialization for keys that are not strings
2024-04-30 10:02:13 +02:00
Mose Müller
bb3d6fcce1
updates _ObservableDict
...
- allows for strings and numbers now
- key will have double quotes (") instead of single quote (') when key is a string
- fixed some few things
- added/updated tests
2024-04-30 10:02:13 +02:00
Mose Müller
e9a7e785dd
npm run build
2024-04-30 10:02:13 +02:00
Mose Müller
348f8aac9b
removes tests for get_object_attr_from_path (uses get_object_by_path_parts internally)
2024-04-26 09:49:01 +02:00
Mose Müller
25e578fbba
parse_full_access_path can match floats inside brackets now
2024-04-26 09:42:26 +02:00
Mose Müller
1ee6a299b2
updates tests for is_property_attribute
2024-04-26 09:25:11 +02:00
Mose Müller
f315cd62d6
moves render_in_frontend function to decorators module, removes unused update_value_if_change function
2024-04-26 09:10:05 +02:00
Mose Müller
87d172b94b
simplifies, documents and tests parse_serialized_key helper function
2024-04-26 08:15:21 +02:00
Mose Müller
a2c60a9c40
chore: replacing old method, adding TODO
2024-04-25 17:44:16 +02:00
Mose Müller
66376e2e6c
removes parse_keyed_attribute
2024-04-25 17:40:33 +02:00
Mose Müller
d1c00a2612
using parse_full_access_path instead of path.split(".") in state manager
2024-04-25 17:34:48 +02:00
Mose Müller
6dd878a062
uses helper method in serializer
2024-04-25 17:33:42 +02:00
Mose Müller
2898b62b9c
adds parse_serialized_key and get_object_by_path_parts helper methods
2024-04-25 17:33:32 +02:00
Mose Müller
b29c86ac2c
updates Serializer functions
...
- using parse_full_access_path instead of parse_keyed_attribute
- renames get_next_level_dict_by_key to get_container_item_by_key
- replaces ensure_exists and get_nested_value by get_or_create_item_in_container
This allows us to handle access paths like "dict_attr['key'][0].some_attr".
2024-04-25 16:52:40 +02:00
Mose Müller
c75b203c3d
creates functions to split full access paths and combine the atomic parts back together
2024-04-25 16:30:20 +02:00
Mose Müller
036e80b920
removes warning when using dict as attribute
2024-04-25 14:23:59 +02:00
Mose Müller
de7badd007
fixes exception message
2024-04-25 14:22:49 +02:00
Mose Müller
4e9e1384df
updates get_next_level_dict_by_key to handle lists and dictionaries
2024-04-25 10:52:36 +02:00
Mose Müller
5f7cc7f671
fixes type
2024-04-25 10:51:53 +02:00