add default for ConfigColor.. ConfigSequence needs this now
authorghost <andreas.monzner@multimedia-labs.de>
Fri, 13 Feb 2009 22:38:52 +0000 (23:38 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Fri, 13 Feb 2009 22:38:52 +0000 (23:38 +0100)
lib/python/Plugins/Extensions/DVDBurn/DVDProject.py

index 7ea32df..660234f 100644 (file)
@@ -2,8 +2,8 @@ from Tools.Directories import fileExists
 from Components.config import config, ConfigSubsection, ConfigInteger, ConfigText, ConfigSelection, getConfigListEntry, ConfigSequence, ConfigSubList
 
 class ConfigColor(ConfigSequence):
 from Components.config import config, ConfigSubsection, ConfigInteger, ConfigText, ConfigSelection, getConfigListEntry, ConfigSequence, ConfigSubList
 
 class ConfigColor(ConfigSequence):
-       def __init__(self):
-               ConfigSequence.__init__(self, seperator = "#", limits = [(0,255),(0,255),(0,255)])
+       def __init__(self, default = [128,128,128]):
+               ConfigSequence.__init__(self, seperator = "#", limits = [(0,255),(0,255),(0,255)], default = default)
 
 class ConfigFilename(ConfigText):
        def __init__(self):
 
 class ConfigFilename(ConfigText):
        def __init__(self):