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
from Products.ERP5Type.XMLObject import XMLObject
class CalendarException(XMLObject):
"""
Exception of Calendar Period
"""
# CMF Type Definition
meta_type = 'ERP5 Calendar Exception'
portal_type = 'Calendar Exception'
isPortalContent = 1
isRADContent = 1
"""
Exception of Calendar Period
"""
# CMF Type Definition
meta_type = 'ERP5 Calendar Exception'
portal_type = 'Calendar Exception'
isPortalContent = 1
isRADContent = 1
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
# Default Properties
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.CalendarException
)
# Default Properties
property_sheets = ( PropertySheet.Base
, PropertySheet.XMLObject
, PropertySheet.CategoryCore
, PropertySheet.DublinCore
, PropertySheet.CalendarException
)
def reindexObject(self, *args, **kw):
"""
Make sure to reindex the parent period
"""
self.getParentValue().recursiveReindexObject()
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