[pitivi] ElementTreeFormatter: Properly load sources. Fixes #582419
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] ElementTreeFormatter: Properly load sources. Fixes #582419
- Date: Tue, 26 May 2009 12:20:28 -0400 (EDT)
commit 5b402e5664ea8f4c15e4c8b746dd4f2d7a14a59f
Author: Edward Hervey <bilboed bilboed com>
Date: Tue May 26 18:24:05 2009 +0200
ElementTreeFormatter: Properly load sources. Fixes #582419
---
pitivi/formatters/etree.py | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/pitivi/formatters/etree.py b/pitivi/formatters/etree.py
index d4db807..9d94801 100644
--- a/pitivi/formatters/etree.py
+++ b/pitivi/formatters/etree.py
@@ -225,17 +225,12 @@ class ElementTreeFormatter(Formatter):
return element
- def _loadFactories(self, factories, klass):
- res = []
- for fact in factories:
- obj = self._loadObjectFactory(klass, fact)
- if obj:
- res.append(obj)
- return res
-
def _loadSources(self):
sources = self.factoriesnode.find("sources")
- return self._loadFactories(sources, FileSourceFactory)
+ res = []
+ for src in sources:
+ res.append(self._loadFactory(src))
+ return res
def _serializeDict(self, element, dict):
for a, b in dict.iteritems():
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]