'Convert an incoming serialized dict into values that can be
directly assigned to an item\'s attributes and assign them'

def deserialize(self, item, data, flush=True, **context):

    sa_session = self.app.model.context
    new_dict = {}
    for (key, val) in data.items():
        if (key in self.deserializers):
            new_dict[key] = self.deserializers[key](item, key, val, **context)
    if (flush and len(new_dict)):
        sa_session.add(item)
        sa_session.flush()
    return new_dict
