Changeset 4e11d58 in flexoentity
- Timestamp:
- 11/27/25 21:46:53 (7 weeks ago)
- Branches:
- master
- Children:
- 100c1d2
- Parents:
- ef964d8
- Location:
- flexoentity
- Files:
-
- 2 edited
-
domain.py (modified) (2 diffs)
-
flexo_entity.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
flexoentity/domain.py
ref964d8 r4e11d58 27 27 28 28 def _deserialize_content(self, content: dict): 29 super()._deserialize_content(content) 29 30 self.fullname = content.get("fullname", "") 30 31 self.description = content.get("description", "") … … 32 33 33 34 def _serialize_content(self): 34 return { 35 "fullname": self.fullname, 36 "description": self.description, 37 "classification": self.classification, 38 } 39 40 @classmethod 41 def from_dict(cls, data): 42 43 obj = super().from_dict(data) 44 content = data.get("content", {}) 45 obj._deserialize_content(content) 46 return obj 35 base = super()._serialize_content() 36 base.update( 37 { 38 "fullname": self.fullname, 39 "description": self.description, 40 "classification": self.classification, 41 } 42 ) 43 return base -
flexoentity/flexo_entity.py
ref964d8 r4e11d58 303 303 _in_factory=True 304 304 ) 305 obj._deserialize_content(data )305 obj._deserialize_content(data.get("content", {})) 306 306 return obj 307 307
Note:
See TracChangeset
for help on using the changeset viewer.
