Commit 739efb1b authored by Jérome Perrin's avatar Jérome Perrin

'description' key was duplicated, message* keys were missing. Again thx romain.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21080 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ff4be137
......@@ -33,24 +33,24 @@ class CalendarConstraint:
_constraints = (
{ 'id' : 'presence_request_line',
'description' : 'Must contain at least one period',
'type' : 'ContentExistence',
'portal_type' : ('Presence Request Period', ),
'description' : 'No Presence Request Period created yet',
'message_no_subobject_portal_type': 'No Presence Request Period created yet',
'condition' : 'python: object.getPortalType() == "Presence Request"',
},
{ 'id' : 'leave_request_line',
'description' : 'Must contain at least one period',
'type' : 'ContentExistence',
'portal_type' : ('Leave Request Period', ),
'description' : 'No Leave Request Period created yet',
'message_no_subobject_portal_type': 'No Leave Request Period created yet',
'condition' : 'python: object.getPortalType() == "Leave Request"',
},
{ 'id' : 'group_request_line',
'description' : 'Must contain at least one period',
'type' : 'ContentExistence',
'portal_type' : ('Group Leave Period', 'Group Presence Period', ),
'description' : 'No Calendar Line created yet',
'message_no_subobject_portal_type': 'No Calendar Line created yet',
'condition' : 'python: object.getPortalType() == "Group Calendar"',
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment