Package xappy :: Module fieldactions :: Class SortableMarshaller
[frames] | no frames]

Class SortableMarshaller

source code

object --+
         |
        SortableMarshaller

Implementation of marshalling for sortable values.

Instance Methods
 
__init__(self, indexing=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
marshall_string(self, fieldname, value)
Marshall a value for sorting in lexicograpical order.
source code
 
marshall_float(self, fieldname, value)
Marshall a value for sorting as a floating point value.
source code
 
marshall_date(self, fieldname, value)
Marshall a value for sorting as a date.
source code
 
get_marshall_function(self, fieldname, sorttype)
Get a function used to marshall values of a given sorttype.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, indexing=True)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

marshall_string(self, fieldname, value)

source code 

Marshall a value for sorting in lexicograpical order.

This returns the input as the output, since strings already sort in lexicographical order.