@classmethod
    def from_db_model(cls, m, host_url):
        obj = super(Pipeline, cls).from_db_model(m, host_url)
        le_obj = m.last_execution()
        if le_obj is not None:
            obj.last_execution = le_obj.uuid
        obj.plan_uri = '%s/v1/plans/%s' % (host_url, m.plan_uuid)
        obj.trigger_uri = '%s/v1/triggers/%s' % (host_url, m.trigger_id)
        return obj
dataset/ETHPy150Open openstack/solum/solum/api/controllers/v1/datamodel/pipeline.py/Pipeline.from_db_model/original