* morituri/image/table.py:

Add a version ivar to help with versioning pickled objects.
This commit is contained in:
Thomas Vander Stichele
2009-05-23 19:48:35 +00:00
parent 85e9058594
commit feec95e768
2 changed files with 8 additions and 0 deletions

View File

@@ -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:

View File

@@ -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 = []