[pitivi] formatter.format: implement save_project
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] formatter.format: implement save_project
- Date: Fri, 17 Apr 2009 09:36:05 -0400 (EDT)
commit 2703b6c688c29f3cd4f4f1d6411ae7e8231c9d1f
Author: Edward Hervey <bilboed bilboed com>
Date: Tue Apr 7 19:58:08 2009 +0200
formatter.format: implement save_project
---
pitivi/formatters/format.py | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/pitivi/formatters/format.py b/pitivi/formatters/format.py
index dc51182..ea4fab6 100644
--- a/pitivi/formatters/format.py
+++ b/pitivi/formatters/format.py
@@ -69,7 +69,13 @@ def save_project(project, uri, formatter=None, overwrite=False):
@see: L{Formatter.saveProject}
"""
- raise NotImplementedError
+ if formatter == None:
+ if project.format:
+ formatter == project.format
+ else:
+ from pitivi.formatters.etree import ElementTreeFormatter
+ formatter = ElementTreeFormatter()
+ formatter.saveProject(project, uri, overwrite)
def can_handle_location(uri):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]