[CMF-checkins] CVS: CMF/CMFCalendar - CREDITS.txt:1.1.18.1 CalendarTool.py:1.6.10.1
Yvo Schubbe
schubbe@web.de
Fri, 10 Jan 2003 07:38:56 -0500
Update of /cvs-repository/CMF/CMFCalendar
In directory cvs.zope.org:/tmp/cvs-serv16762/CMFCalendar
Modified Files:
Tag: yuppie-buglets1-branch
CREDITS.txt CalendarTool.py
Log Message:
cleanup:
- moved credits to CREDITS.txt
- added default file header
- removed useless imports
- replaced string function
=== CMF/CMFCalendar/CREDITS.txt 1.1 => 1.1.18.1 ===
--- CMF/CMFCalendar/CREDITS.txt:1.1 Thu May 2 09:51:48 2002
+++ CMF/CMFCalendar/CREDITS.txt Fri Jan 10 07:38:52 2003
@@ -8,3 +8,6 @@
Andy originally implemented the Calendar design in plone
(www.plone.org) with help from the plone development team
(Alexander Limi, Vidar Andersen and Alan Runyan)
+
+CalendarTool was converted to a CMF Tool by Alan Runyan.
+Additional Modification for the CMFCalendar by Andy Dawkins 29/04/2002
=== CMF/CMFCalendar/CalendarTool.py 1.6 => 1.6.10.1 ===
--- CMF/CMFCalendar/CalendarTool.py:1.6 Sun Oct 6 12:23:27 2002
+++ CMF/CMFCalendar/CalendarTool.py Fri Jan 10 07:38:52 2003
@@ -1,21 +1,26 @@
-########################################################################
+##############################################################################
#
-# Calendar Tool by Andy Dawkins (New Information Paradigms Ltd)
+# Copyright (c) 2002, 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
#
-# Converted to a CMF Tool by Alan Runyan
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE
#
-# Additional Modification for the CMFCalendar by Andy Dawkins 29/04/2002
-#
-########################################################################
+##############################################################################
+""" CMFCalendar portal_calendar tool.
+$Id$
+"""
import calendar
calendar.setfirstweekday(6) #start day Mon(0)-Sun(6)
from DateTime import DateTime
from Products.CMFCore.utils import UniqueObject
-from Products.CMFCore.utils import _checkPermission, _getAuthenticatedUser
-from Products.CMFCore.utils import getToolByName, _dtmldir
from OFS.SimpleItem import SimpleItem
from Globals import InitializeClass
from AccessControl import ClassSecurityInfo
@@ -71,8 +76,7 @@
security.declarePublic('getDays')
def getDays(self):
""" Returns a list of days with the correct start day first """
- import string
- return string.split(calendar.weekheader(2),' ')
+ return calendar.weekheader(2).split()
security.declarePublic('getWeeksList')
def getWeeksList(self, month='1', year='2002'):