merge branch master
This commit is contained in:
commit
bf617e12b0
2 changed files with 7 additions and 0 deletions
|
@ -53,6 +53,11 @@ class Track(object):
|
||||||
else:
|
else:
|
||||||
self.data.update(data)
|
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
|
@property
|
||||||
def uid(self):
|
def uid(self):
|
||||||
if self.trackId is None:
|
if self.trackId is None:
|
||||||
|
|
|
@ -70,6 +70,8 @@ def test_folder(self, config):
|
||||||
ch1 = top['child1']
|
ch1 = top['child1']
|
||||||
self.assertEqual(ch1.parent, top.rid)
|
self.assertEqual(ch1.parent, top.rid)
|
||||||
self.assertEqual(list(top.keys()), ['child1'])
|
self.assertEqual(list(top.keys()), ['child1'])
|
||||||
|
ch1.set('name', 'level2-item1')
|
||||||
|
ch1.storeTrack()
|
||||||
|
|
||||||
storage.commit()
|
storage.commit()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue