Package imagizer :: Module config' :: Class Config
[hide private]
[frames] | no frames]

Class Config

source code

this class is a Borg : always returns the same values regardless to the instance of the object

Instance Methods [hide private]
 
__init__(self)
This is a Borg, so the constructor is more or less empty
source code
 
__repr__(self) source code
 
load(self, filenames)
retrieves the the default options, if the filenames does not exist, uses the default instead
source code
 
printConfig(self)
Print out the
source code
 
saveConfig(self, filename)
Saves the default options to file
source code
Class Variables [hide private]
  __shared_state = {'AutoRotate': True, 'Burn': 'grave-rep $Sele...
Method Details [hide private]

load(self, filenames)

source code 

retrieves the the default options, if the filenames does not exist, uses the default instead

Parameters:
  • filenames (list of strings or unicode) - list of filename

saveConfig(self, filename)

source code 

Saves the default options to file

Parameters:
  • filename (string or unicode) - name of the file to save the configuration to

Class Variable Details [hide private]

__shared_state

Value:
{'AutoRotate': True,
 'Burn': 'grave-rep $Selected',
 'Coding': 'UTF-8',
 'CommentFile': 'index.desc',
 'DEBUG': None,
 'Dcraw': 'dcraw -w -c',
 'DefaultDirMode': 3581,
 'DefaultFileMode': 436,
...