Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Added empty lists as default values for all_data and all_plots in Options, so

that subclasses of Options will work with the GUI without modifications.
This commit is contained in:
Einar Ryeng 2007-06-28 21:33:09 +00:00
parent 7b20f44fef
commit 4eaea2fe59
1 changed files with 2 additions and 0 deletions

View File

@ -243,6 +243,8 @@ class Options(dict):
dict.__init__(self, *args, **kw) dict.__init__(self, *args, **kw)
self['out_plots'] = None self['out_plots'] = None
self['out_data'] = None self['out_data'] = None
self['all_plots'] = []
self['all_data'] = []
def _copy_from_list(self, key_list): def _copy_from_list(self, key_list):
"""Returns suboptions (dictionary) from a list of keys. """Returns suboptions (dictionary) from a list of keys.