Skip to content

Commit

Permalink
Implement refresh as well
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneberth committed Jan 15, 2025
1 parent f293623 commit 8c7036e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/viur/core/bones/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ def postSavedHandler(self, skel, boneName, key) -> None:
for bone_name, bone in using.items():
bone.postSavedHandler(using, bone_name, None)

def refresh(self, skel, boneName) -> None:
super().refresh(skel, boneName)
for idx, lang, value in self.iter_bone_value(skel, boneName):
using = self.using()
using.unserialize(value)
for bone_name, bone in using.items():
bone.refresh(using, bone_name)

def getSearchTags(self, skel: 'viur.core.skeleton.SkeletonInstance', name: str) -> set[str]:
"""
Expand Down

0 comments on commit 8c7036e

Please sign in to comment.