Commit 76c0e48d authored by Romain Courteaud's avatar Romain Courteaud

Make sure to reindex parent period.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12549 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0eda7145
...@@ -32,23 +32,29 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface ...@@ -32,23 +32,29 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
class CalendarException(XMLObject): class CalendarException(XMLObject):
""" """
Exception of Calendar Period Exception of Calendar Period
""" """
# CMF Type Definition # CMF Type Definition
meta_type = 'ERP5 Calendar Exception' meta_type = 'ERP5 Calendar Exception'
portal_type = 'Calendar Exception' portal_type = 'Calendar Exception'
isPortalContent = 1 isPortalContent = 1
isRADContent = 1 isRADContent = 1
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative security # Default Properties
security = ClassSecurityInfo() property_sheets = ( PropertySheet.Base
security.declareObjectProtected(Permissions.AccessContentsInformation) , PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.CalendarException
)
# Default Properties def reindexObject(self, *args, **kw):
property_sheets = ( PropertySheet.Base """
, PropertySheet.XMLObject Make sure to reindex the parent period
, PropertySheet.CategoryCore """
, PropertySheet.DublinCore self.getParentValue().recursiveReindexObject()
, PropertySheet.CalendarException
)
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