Utils
index
/home/mike/src/jokosher/trunk/Jokosher/Utils.py

#       THIS FILE IS PART OF THE JOKOSHER PROJECT AND LICENSED UNDER THE GPL. SEE
#       THE 'COPYING' FILE FOR DETAILS
#
#       Utils.py
#       
#       This module contains a bunch of useful helper methods used elsewhere in
#       the code.
#
#-------------------------------------------------------------------------------

 
Modules
       
math
xml.dom.minidom

 
Functions
       
DbToFloat(f)
Converts f from the decibel scale to a 0..1 float
LoadDictionaryFromXML(parentElement)
For those times when you don't want to fill module variables with
parameters from the XML but just want to fill a dictionary instead.
LoadParametersFromXML(self, parentElement)
Loads parameters from the XML and fills variables of the same name
in that module. The parentElement is the block of XML with the
parameters.
StoreDictionaryToXML(self, doc, parent, dict)
Saves a dictionary of settings
in an XML document (doc) with the parent XML tag (parent)
StoreParametersToXML(self, doc, parent, parameters)
Saves a list of variable names (parameters)
in an XML document (doc) with the parent XML tag (parent)
floatRange(start, end=None, inc=None)
A range function, that does accept float increments...