'Serialize a C{decimal.Decimal} instance to the specified wire format.'

def toString(self, inObject):

    if isinstance(inObject, decimal.Decimal):
        return str(inObject).encode('ascii')
    raise ValueError('amp.Decimal    can    only    encode    instances    of    decimal.Decimal')
