[SCM] morituri/master: * morituri/result/result.py: Add a Logger base class.
js at users.alioth.debian.org
js at users.alioth.debian.org
Sun Oct 19 20:09:05 UTC 2014
The following commit has been merged in the master branch:
commit b63777ea6202eea2d6009b21220a1b5ef1a5d0cc
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date: Fri Jun 5 09:39:48 2009 +0000
* morituri/result/result.py:
Add a Logger base class.
diff --git a/ChangeLog b/ChangeLog
index cea6dd5..166bd9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-06-05 Thomas Vander Stichele <thomas at apestaart dot org>
+ * morituri/result/result.py:
+ Add a Logger base class.
+
+2009-06-05 Thomas Vander Stichele <thomas at apestaart dot org>
+
* configure.ac:
* morituri/Makefile.am:
* morituri/result (added):
diff --git a/morituri/result/result.py b/morituri/result/result.py
index 8ca8cea..48ca495 100644
--- a/morituri/result/result.py
+++ b/morituri/result/result.py
@@ -20,6 +20,10 @@
# You should have received a copy of the GNU General Public License
# along with morituri. If not, see <http://www.gnu.org/licenses/>.
+import time
+
+from morituri.result import logger
+
class TrackResult:
"""
@ivar testcrc: 4-byte CRC for the test read
@@ -58,3 +62,22 @@ class RipResult:
def __init__(self):
self.tracks = []
+
+class Logger(object):
+ """
+ I log the result of a rip.
+ """
+
+ def log(self, ripResult, epoch=time.time()):
+ """
+ Create a log from the given ripresult.
+
+ @param epoch: when the log file gets generated
+ @type ripResult: L{RipResult}
+
+ @rtype: str
+ """
+ raise NotImplementedError
+
+def getLogger():
+ return logger.MorituriLogger()
--
morituri packaging
More information about the pkg-multimedia-commits
mailing list