From 76c0e48dd93fa0a398d49f808bd2d7b103823ee2 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Mon, 5 Feb 2007 11:13:04 +0000 Subject: [PATCH] Make sure to reindex parent period. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12549 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/CalendarException.py | 42 ++++++++++++---------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/product/ERP5/Document/CalendarException.py b/product/ERP5/Document/CalendarException.py index fac407cfa5..93a99fb2f0 100644 --- a/product/ERP5/Document/CalendarException.py +++ b/product/ERP5/Document/CalendarException.py @@ -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() -- 2.30.9