def encode(self, domain, attribute, value):
        try:
            field = self.fields[attribute]
        except __HOLE__:
            return value
        else:
            return field.encode(value)
dataset/ETHPy150Open saymedia/python-simpledb/simpledb/models.py/FieldEncoder.encode