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:
|
||||
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:
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue