Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def findbyjobgroup_id1(session, jobgroup_id):
    if jobgroup_id:
        query = session.query(Machine).add_entity(Machine2Jobgroup).join(Machine2Jobgroup)
        query = query.filter(Machine2Jobgroup.jobgroup_id == jobgroup_id)
        return query.first()
    else:
        return None
        


src/k/a/karesansui-HEAD/karesansui/gadget/job.py   karesansui(Download)
from karesansui.db.access._2pysilhouette import jg_findbyalltype, jg_findby1
 
from karesansui.db.access.machine_machine2jobgroup import \
     findbyall as m2mj_findbyall, findbyjobgroup_id1 as m2mj_findby1
 
        if jg is None:
            return web.notfound()
        m2mj = m2mj_findby1(self.orm, jg.id)
 
        self.view.jg = jg