* morituri/image/table.py:
Add a version ivar to help with versioning pickled objects.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2009-05-23 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/image/table.py:
|
||||
Add a version ivar to help with versioning pickled objects.
|
||||
|
||||
2009-05-23 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* morituri/program/cdparanoia.py:
|
||||
|
||||
@@ -115,6 +115,7 @@ class Table(object, log.Loggable):
|
||||
@type tracks: list of L{Track}
|
||||
@ivar catalog: catalog number
|
||||
@type catalog: str
|
||||
@ivar version: version number of the object and its API.
|
||||
"""
|
||||
|
||||
tracks = None # list of Track
|
||||
@@ -122,6 +123,8 @@ class Table(object, log.Loggable):
|
||||
catalog = None # catalog number; FIXME: is this UPC ?
|
||||
cdtext = None
|
||||
|
||||
version = 1
|
||||
|
||||
def __init__(self, tracks=None):
|
||||
if not tracks:
|
||||
tracks = []
|
||||
|
||||
Reference in New Issue
Block a user