Module wmiutils :: Class ByFunctionConverter
[hide private]

Class ByFunctionConverter

source code

Converter --+
            |
           ByFunctionConverter

This converter allows making conversion by custom function. For example if it is required to parse out a part of the string by some regular expression.


Deprecated: This class is deprecated

Instance Methods [hide private]
 
__init__(self, function) source code
 
convert(self, originalValue)
Converts provided value by function passed to converter constructor.
source code
Method Details [hide private]

__init__(self, function)
(Constructor)

source code 
Parameters:
  • function - callable object which will do actual conversion.

convert(self, originalValue)

source code 

Converts provided value by function passed to converter constructor. This method does not make any special exception handling. It just invokes conversion function.

Overrides: Converter.convert