[Erp5-report] r18227 - /erp5/trunk/products/ERP5/PropertySheet/Account.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 11 13:40:44 CET 2007
Author: jerome
Date: Tue Dec 11 13:40:43 2007
New Revision: 18227
URL: http://svn.erp5.org?rev=18227&view=rev
Log:
use CategoryExistence instead of CategoryMembershipArity with min_arity and no max_arity
Modified:
erp5/trunk/products/ERP5/PropertySheet/Account.py
Modified: erp5/trunk/products/ERP5/PropertySheet/Account.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/PropertySheet/Account.py?rev=18227&r1=18226&r2=18227&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/PropertySheet/Account.py (original)
+++ erp5/trunk/products/ERP5/PropertySheet/Account.py Tue Dec 11 13:40:43 2007
@@ -46,19 +46,15 @@
_constraints = (
{ 'id': 'account_type_existance',
'description': 'Account Type must be set',
- 'type': 'CategoryMembershipArity',
- 'min_arity': 1,
- 'portal_type': ('Category', ),
- 'base_category' : ('account_type',),
+ 'type': 'CategoryExistence',
+ 'account_type' : 1,
'condition' : 'python: object.getValidationState() not'
' in ("invalidated", "deleted")'
},
{ 'id': 'gap_existance',
'description': 'GAP must be set',
- 'type': 'CategoryMembershipArity',
- 'min_arity': 1,
- 'portal_type': ('Category', ),
- 'base_category' : ('gap',),
+ 'type': 'CategoryExistence',
+ 'gap' : 1,
'condition' : 'python: object.getValidationState() not'
' in ("invalidated", "deleted")'
},
More information about the Erp5-report
mailing list