Package fife :: Package extensions :: Package serializers :: Module simplexml :: Class SimpleSerializer
[hide private]
[frames] | no frames]

Class SimpleSerializer

source code

object --+
         |
        SimpleSerializer
Known Subclasses:

Use this as a base class for custom setting loaders/savers to use with the Setting class.

Instance Methods [hide private]
 
__init__(self, filename=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get(self, module, name, defaultValue=None) source code
 
set(self, module, name, value, extra_attrs={}) source code
 
load(self, filename=None) source code
 
save(self, filename=None) source code
 
getModuleName(self) source code
 
getAllSettings(self, module) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

load(self, filename=None)

source code 

Note: If the filename specified is empty this function MUST initialize an empty settings file in whatever format you need.

getModuleName(self)

source code 

Note: Returns all the module names that are present in the settings.xml file as a list of strings

getAllSettings(self, module)

source code 

Note: Returns all the setting names under the Module name module as a dictionary structure