Package grassyknoll :: Package backend :: Package lucene :: Module conversion
[hide private]

Module conversion

source code

convert python values to and from lucene

Functions [hide private]
unicode
toLucene(value)
Returns: a Lucene encoding of value
source code
typ
fromLucene(value, typ)
Returns: an instance of typ
source code
Variables [hide private]
  _float_scale_factor = float(1e6)
Function Details [hide private]

toLucene(value)

source code 
Parameters:
  • value (basic Python type) - a value to be intelligently converted
Returns: unicode
a Lucene encoding of value

fromLucene(value, typ)

source code 
Parameters:
  • value (unicode) - a Lucene encoding of value
  • typ (type) - the desired Python type
Returns: typ
an instance of typ