From 1f3cafd8b3ef90585bf06c490250dac16ee37a21 Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Mon, 21 Apr 2025 17:34:50 +1000 Subject: [PATCH] Implement read for Int32 and StringDictionaryKey --- csla_binary/binary_reader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/csla_binary/binary_reader.py b/csla_binary/binary_reader.py index 91bf246..d4ab5bb 100644 --- a/csla_binary/binary_reader.py +++ b/csla_binary/binary_reader.py @@ -130,7 +130,7 @@ class CslaBinaryReader: raise NotImplementedError() if known_type == CslaKnownTypes.Int32.value: - raise NotImplementedError() + return self.read_int32() if known_type == CslaKnownTypes.UInt32.value: raise NotImplementedError() @@ -185,7 +185,8 @@ class CslaBinaryReader: return system_string if known_type == CslaKnownTypes.StringDictionaryKey.value: - raise NotImplementedError() + dictionary_key = self.read_int32() + return self.keywords_dictionary[dictionary_key] raise ValueError('Unexpected object tag {}'.format(known_type))