(cls, value, type_string)
return cls._types[type_string].encode(value)
Encodes a value for storage.
Encodes a value for storage.
Encodes a value for storage .
def encode_value(cls, value, type_string):
        """Encodes a value for storage."""
        if type_string not in cls._types:
            raise NotImplementedError(
                'Type [{0:s}] is not yet implemented as a type.')
        return cls._types[type_string].encode(value)
def encode_value ( cls , value , type_string ) : if type_string not in cls . _types : raise NotImplementedError ( 'Type [{0:s}] is not yet implemented as a type.' ) return cls . _types [ type_string ] . encode ( value )