diff --git a/product/ERP5PropertySheetLegacy/PropertySheet/CategoryExistenceConstraint.py b/product/ERP5PropertySheetLegacy/PropertySheet/CategoryExistenceConstraint.py index 0e6fb7916081eeff6a05a13d971017125ce920d6..e3771f339f77fbaa218051b3704a224c356b5a79 100644 --- a/product/ERP5PropertySheetLegacy/PropertySheet/CategoryExistenceConstraint.py +++ b/product/ERP5PropertySheetLegacy/PropertySheet/CategoryExistenceConstraint.py @@ -35,10 +35,14 @@ class CategoryExistenceConstraint: 'type': 'lines', 'description' : 'Categories to check the existence for', 'default': () }, + # TALES Expression { 'id': 'constraint_portal_type', - 'type': 'lines', + 'type': 'string', 'description' : 'Portal types', - 'default': () }, + 'default': 'python: ()' }, + { 'id' : 'use_acquisition', + 'type': 'boolean', + 'description': 'Use acquisition when checking categories' }, { 'id': 'message_category_not_set', 'type': 'string', 'description' : 'Error message when the category is not defined', diff --git a/product/ERP5PropertySheetLegacy/PropertySheet/CategoryMembershipArityConstraint.py b/product/ERP5PropertySheetLegacy/PropertySheet/CategoryMembershipArityConstraint.py index c0e57378e13d1f96e073cd7cdb72cfaec46446be..c8f7651ae1c0d06b4eb0e9bf758d350566575f7f 100644 --- a/product/ERP5PropertySheetLegacy/PropertySheet/CategoryMembershipArityConstraint.py +++ b/product/ERP5PropertySheetLegacy/PropertySheet/CategoryMembershipArityConstraint.py @@ -37,14 +37,18 @@ class CategoryMembershipArityConstraint: { 'id': 'max_arity', 'type': 'int', 'description' : 'Maximum arity' }, + # TALES Expression { 'id': 'constraint_portal_type', - 'type': 'lines', + 'type': 'string', 'description' : 'Portal types', - 'default': () }, + 'default': 'python: ()' }, { 'id': 'constraint_base_category', 'type': 'lines', 'description' : 'Base categories', 'default': () }, + { 'id' : 'use_acquisition', + 'type': 'boolean', + 'description': 'Use acquisition when checking categories' }, { 'id': 'message_arity_too_small', 'type': 'string', 'description' : 'Error message when the arity for the relation '\