def transform_outgoing(self, son, collection):
        if 'type' in son:
            klass = classify(son['type'])
            return klass.demongofy(son)
        else:
            try:
                return collection_to_class[collection].demongofy(son)
            except KeyError:
                return son
Transform an object retrieved from the database
dataset/ETHPy150Open ebroder/anygit/anygit/backends/mongodb.py/TransformObject.transform_outgoing