[CMF-checkins] CVS: CMF/CMFCalendar - CREDITS.txt:1.2 CalendarTool.py:1.7

Yvo Schubbe schubbe@web.de
Tue, 4 Feb 2003 17:46:40 -0500


Update of /cvs-repository/CMF/CMFCalendar
In directory cvs.zope.org:/tmp/cvs-serv5619/CMFCalendar

Modified Files:
	CREDITS.txt CalendarTool.py 
Log Message:
Merged yuppie-buglets1-branch:
- Fixed buglets. (Collector #94 and #95)
- Removed string functions and useless imports.

=== CMF/CMFCalendar/CREDITS.txt 1.1 => 1.2 ===
--- CMF/CMFCalendar/CREDITS.txt:1.1	Thu May  2 09:51:48 2002
+++ CMF/CMFCalendar/CREDITS.txt	Tue Feb  4 17:46:36 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.7 ===
--- CMF/CMFCalendar/CalendarTool.py:1.6	Sun Oct  6 12:23:27 2002
+++ CMF/CMFCalendar/CalendarTool.py	Tue Feb  4 17:46:36 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'):