Author: duncan
Date: Mon Dec  4 16:27:45 2006
New Revision: 8696

Modified:
   branches/rel-1/freevo/src/video/plugins/dvdbackup.py

Log:
Added some debug messages


Modified: branches/rel-1/freevo/src/video/plugins/dvdbackup.py
==============================================================================
--- branches/rel-1/freevo/src/video/plugins/dvdbackup.py        (original)
+++ branches/rel-1/freevo/src/video/plugins/dvdbackup.py        Mon Dec  4 
16:27:45 2006
@@ -29,10 +29,12 @@
 #Import statements
 from os.path import join, split
 import plugin, config, menu
-#import config
 from video.encodingclient import *
 from gui.AlertBox import AlertBox
 from gui.PopupBox import PopupBox
+import config
+
+DEBUG=config.DEBUG
 
 class PluginInterface(plugin.ItemPlugin):
     """
@@ -45,13 +47,18 @@
     """
 
     def actions(self, item):
-        #testing stuff
-##~         print item.mode
-##~         print item.name
-##~         print item.filename
-##~         print item.parentname
-##~         if hasattr(item, 'media') and hasattr(item.media, 'devicename'):
-##~             print item.media.devicename
+        if DEBUG >= 1:
+            #testing stuff
+            print 'item.type=\"%s\"' % (item.type)
+            print 'item.mode=\"%s\"' % (item.mode)
+            if hasattr(item, 'info_type'):
+                print 'item.info_type=\"%s\"' % (item.info_type)
+            print 'item.name=\"%s\"' % (item.name)
+            print 'item.filename=\"%s\"' % (item.filename)
+            if hasattr(item, 'parentname'):
+                print 'item.parentname=\"%s\"' % (item.parentname)
+            if hasattr(item, 'media') and hasattr(item.media, 'devicename'):
+                print 'item.media.devicename=\"%s\"' % (item.media.devicename)
             
         if item.type == 'video' and item.mode == 'dvd' and hasattr(item, 
'info_type'):
             if item.info_type == "track": #and item.media and 
item.media.devicename: 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to