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

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/a/d/adhawk-HEAD/adhawk/libs/db_script/fec_kb_updater.py   adhawk(Download)
    if cr.committee_type:
        ct,created_ct = CommitteeType.objects.get_or_create(
                code=cr.committee_type)
        if created_ct:
            log.info("...created\tCommitteeType\t%s"%(unicode(ct),))
        try:
            ct = CommitteeType.objects.get_or_create(
                code=cr.committee_type)
        except CommitteeType.DoesNotExist:
            return True
    if cr.committee_type:
        ct,created_ct = CommitteeType.objects.get_or_create(
                code=cr.committee_type)
        if created_ct:
            log.info("...created\tCommitteeType\t%s"%(unicode(ct),))