[grilo] python: in test-ui, convert to strings when storing media info



commit dfb336a6e5809c33ca28b0fe29483ae024e5bff4
Author: Simon Pena <spena igalia com>
Date:   Mon Dec 20 17:30:16 2010 +0100

    python: in test-ui, convert to strings when storing media info
    
    Since the TreeModel stores strings, we need to get sure that
    the data types being inserted are the right ones.

 tools/python/grilo-test-ui.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tools/python/grilo-test-ui.py b/tools/python/grilo-test-ui.py
index 933fed5..1b79a41 100644
--- a/tools/python/grilo-test-ui.py
+++ b/tools/python/grilo-test-ui.py
@@ -463,7 +463,7 @@ class MainWindow(Gtk.Window):
         if media:
             keys = media.get_keys()
             for key in keys:
-                value = media.get(key)
+                value = str(media.get(key))
                 desc = Grl.metadata_key_get_desc(key)
                 metadata_model.append((desc, value))
                 print ('%(keyname)s: %(keyvalue)s' % {'keyname':desc,



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