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

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

src/e/r/erp5-HEAD/product/ERP5Type/Constraint/AttributeUnicity.py   erp5(Download)
      result = portal.portal_catalog.countResults(**criterion_dict)[0][0]
      if result >= 1:
        mapping['value'] = criterion_dict.get(attribute_name)
        message_id = 'message_invalid_attribute_unicity'
      # Generate error

src/e/r/erp5-HEAD/product/ERP5/Document/AttributeUnicityConstraint.py   erp5(Download)
    result = portal.portal_catalog.countResults(**criterion_dict)[0][0]
    if result >= 1:
      mapping['value'] = criterion_dict.get(attribute_name)
      message_id = 'message_invalid_attribute_unicity'
    # Generate error