[pitivi] etree.py: add a version attribute to curve elements when saving



commit 316e304a6837f3bae3695e809fbfff6299b77486
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Mon Jan 11 18:11:27 2010 -0800

    etree.py: add a version attribute to curve elements when saving

 pitivi/formatters/etree.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/formatters/etree.py b/pitivi/formatters/etree.py
index c0da1f0..be5a446 100644
--- a/pitivi/formatters/etree.py
+++ b/pitivi/formatters/etree.py
@@ -369,7 +369,8 @@ class ElementTreeFormatter(Formatter):
 
     def _saveInterpolator(self, interpolator, prop):
         typename = prop.value_type.name
-        element = Element("curve", property=prop.name, type=typename)
+        element = Element("curve", property=prop.name, type=typename,
+            version="1")
 
         start = self._saveKeyframe(interpolator.start, typename, False)
         start.tag = "start"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]