merge branch master

This commit is contained in:
Helmut Merz 2024-03-20 14:10:44 +01:00
commit bf617e12b0
2 changed files with 7 additions and 0 deletions

View file

@ -53,6 +53,11 @@ class Track(object):
else:
self.data.update(data)
def storeTrack(self):
"""Make changes of this track persistent by updating the corresponding row
in its container."""
self.container.update(self)
@property
def uid(self):
if self.trackId is None:

View file

@ -70,6 +70,8 @@ def test_folder(self, config):
ch1 = top['child1']
self.assertEqual(ch1.parent, top.rid)
self.assertEqual(list(top.keys()), ['child1'])
ch1.set('name', 'level2-item1')
ch1.storeTrack()
storage.commit()