diff --git a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.py b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.py index 0c3f0bc9d012946fef10f279e3ab130117593fd1..92253e5a47e8e10b30faa01838f544e1f10ccde4 100644 --- a/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.py +++ b/bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.py @@ -1,17 +1 @@ -portal = context.getPortalObject() - -preferred_presence_calendar_period_type = portal.portal_preferences\ - .getPreferredPresenceCalendarPeriodType() - -method_id = portal.portal_preferences.getPreference( - 'preferred_category_child_item_list_method_id', 'getCategoryChildCompactLogicalPathItemList') - -category = portal.portal_categories.calendar_period_type - -if preferred_presence_calendar_period_type: - category = category.restrictedTraverse(preferred_presence_calendar_period_type, category) - -return getattr(category, method_id)(local_sort_id=('int_index', 'translated_title'), - checked_permission='View', - is_self_excluded=0, - base=1) +return context.Ticket_getResourceItemList()