[SCM] morituri/master: * morituri/image/table.py: Add a version ivar to help with versioning pickled objects.

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:04 UTC 2014


The following commit has been merged in the master branch:
commit feec95e7684adfce0e7d65ec4df2a80405943b94
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Sat May 23 19:48:35 2009 +0000

    	* morituri/image/table.py:
    	  Add a version ivar to help with versioning pickled objects.

diff --git a/ChangeLog b/ChangeLog
index 1d724ae..a8f6aff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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:
 	  Add copy and test CRC's to object.
 
diff --git a/morituri/image/table.py b/morituri/image/table.py
index 212b699..3dd4498 100644
--- a/morituri/image/table.py
+++ b/morituri/image/table.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 = []

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list