From d78950ebf0ec08d8cd4b95ea1e3bb673f0d3e66d Mon Sep 17 00:00:00 2001 From: Gabriel Monnerat <gabriel@tiolive.com> Date: Fri, 30 Aug 2013 15:23:17 +0000 Subject: [PATCH] Add GroupCalendarAssignment class --- .../GroupCalendarAssignment.py | 38 +++++++++++++++++++ bt5/erp5_calendar/bt/revision | 2 +- .../bt/template_document_id_list | 1 + 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_calendar/DocumentTemplateItem/GroupCalendarAssignment.py create mode 100644 bt5/erp5_calendar/bt/template_document_id_list diff --git a/bt5/erp5_calendar/DocumentTemplateItem/GroupCalendarAssignment.py b/bt5/erp5_calendar/DocumentTemplateItem/GroupCalendarAssignment.py new file mode 100644 index 0000000000..e2bbda3736 --- /dev/null +++ b/bt5/erp5_calendar/DocumentTemplateItem/GroupCalendarAssignment.py @@ -0,0 +1,38 @@ +############################################################################## +# +# Copyright (c) 2002-2013 Nexedi SA and Contributors. All Rights Reserved. +# +# WARNING: This program as such is intended to be used by professional +# programmers who take the whole responsibility of assessing all potential +# consequences resulting from its eventual inadequacies and bugs +# End users who are looking for a ready-to-use solution with commercial +# guarantees and support are strongly adviced to contract a Free Software +# Service Company +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +############################################################################## + +from AccessControl import ClassSecurityInfo +from Products.ERP5Type import Permissions +from Products.ERP5.Document.PresencePeriod import PresencePeriod + +class GroupCalendarAssignment(PresencePeriod): + # CMF Type Definition + meta_type = 'ERP5 Group Calendar Assignment' + portal_type = 'Group Calendar Assignment' + + security = ClassSecurityInfo() + security.declareObjectProtected(Permissions.AccessContentsInformation) \ No newline at end of file diff --git a/bt5/erp5_calendar/bt/revision b/bt5/erp5_calendar/bt/revision index 3456e74000..2291c046ea 100644 --- a/bt5/erp5_calendar/bt/revision +++ b/bt5/erp5_calendar/bt/revision @@ -1 +1 @@ -372 \ No newline at end of file +373 \ No newline at end of file diff --git a/bt5/erp5_calendar/bt/template_document_id_list b/bt5/erp5_calendar/bt/template_document_id_list new file mode 100644 index 0000000000..5df39c8189 --- /dev/null +++ b/bt5/erp5_calendar/bt/template_document_id_list @@ -0,0 +1 @@ +GroupCalendarAssignment \ No newline at end of file -- 2.30.9