Author: duncan
Date: Sun Feb 10 07:07:46 2008
New Revision: 10358

Log:
Added a config function for configuration variables


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

Modified: branches/rel-1-7/freevo/src/video/plugins/dvdbackup.py
==============================================================================
--- branches/rel-1-7/freevo/src/video/plugins/dvdbackup.py      (original)
+++ branches/rel-1-7/freevo/src/video/plugins/dvdbackup.py      Sun Feb 10 
07:07:46 2008
@@ -44,6 +44,12 @@
     and don't forget a dvdrip eats quite a bit of space :)
     """
 
+    def config(self):
+        return [
+            ('DVD_BACKUP_MENU', None, 'A customized menu of encoding 
parameters'),
+        ]
+
+
     def actions(self, item):
         if config.DEBUG >= 2:
             #testing stuff
@@ -77,6 +83,7 @@
                 return [ (self.encoding_profile_menu, _('Backup this dvd 
title...')) ]
         return []
 
+
     def encoding_profile_menu(self, menuw=None, arg=None):
         if config.DVD_BACKUP_MENU:
             menu_items = []
@@ -101,6 +108,7 @@
         encoding_menu = menu.Menu(_('Choose your encoding profile'), 
menu_items)
         menuw.pushmenu(encoding_menu)
 
+
     def create_job(self, menuw=None, arg=None):
         '''
         '''
@@ -190,7 +198,6 @@
         #menuw.delete_menu()
 
 
-
     def error(self, text=""):
         AlertBox(width=400, height=200, text="ERROR: %s" % text).show()
 

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        Sun Feb 10 
07:07:46 2008
@@ -44,6 +44,12 @@
     and don't forget a dvdrip eats quite a bit of space :)
     """
 
+    def config(self):
+        return [
+            ('DVD_BACKUP_MENU', None, 'A customized menu of encoding 
parameters'),
+        ]
+
+
     def actions(self, item):
         if config.DEBUG >= 2:
             #testing stuff

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to