[pitivi: 3/14] Add some debugging to the ETree formatter.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi: 3/14] Add some debugging to the ETree formatter.
- Date: Wed, 24 Jun 2009 13:10:30 +0000 (UTC)
commit 000bd3feeedb6bc978e3cae1b2c4b6f36d41207f
Author: Alessandro Decina <alessandro d gmail com>
Date: Fri Jun 19 16:15:23 2009 +0200
Add some debugging to the ETree formatter.
pitivi/formatters/etree.py | 3 +++
pitivi/stream.py | 6 +-----
2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/formatters/etree.py b/pitivi/formatters/etree.py
index 1997ebc..ed238a2 100644
--- a/pitivi/formatters/etree.py
+++ b/pitivi/formatters/etree.py
@@ -584,10 +584,13 @@ class ElementTreeFormatter(Formatter):
def _matchFactoryStreams(self, factory, old_factory):
old_streams = old_factory.getOutputStreams()
streams = factory.getOutputStreams()
+ self.debug("matching factory streams old (%s) %s new (%s) %s",
+ len(old_streams), old_streams, len(streams), streams)
if len(old_streams) != len(streams):
raise FormatterError("cant find all streams")
stream_map = match_stream_groups_map(old_streams, streams)
+ self.debug("stream map (%s) %s", len(stream_map), stream_map)
if len(stream_map) != len(old_streams):
raise FormatterError("streams don't match")
diff --git a/pitivi/stream.py b/pitivi/stream.py
index f3046a3..15473c3 100644
--- a/pitivi/stream.py
+++ b/pitivi/stream.py
@@ -93,12 +93,8 @@ class MultimediaStream(Loggable):
return self.pad_name == other.pad_name and self.isCompatible(other)
#return self.isCompatible(other)
- def __repr__(self):
- return "<%s(%s) '%s'>" % (self.__class__.__name__,
- self.pad_name, self.caps.to_string()[:30])
-
def __str__(self):
- return "%s" % self.caps
+ return "<%s(%s) '%s'>" % (self.__class__.__name__, self.pad_name, self.caps)
class VideoStream(MultimediaStream):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]