[CalendarServer-changes] [11651] PyCalendar/branches/json-2/src/pycalendar
source_changes at macosforge.org
source_changes at macosforge.org
Mon Sep 2 17:40:32 PDT 2013
Revision: 11651
http://trac.calendarserver.org//changeset/11651
Author: cdaboo at apple.com
Date: 2013-09-02 17:40:32 -0700 (Mon, 02 Sep 2013)
Log Message:
-----------
API tweaks and fixes.
Modified Paths:
--------------
PyCalendar/branches/json-2/src/pycalendar/containerbase.py
PyCalendar/branches/json-2/src/pycalendar/datetime.py
PyCalendar/branches/json-2/src/pycalendar/icalendar/calendar.py
PyCalendar/branches/json-2/src/pycalendar/icalendar/componentrecur.py
Modified: PyCalendar/branches/json-2/src/pycalendar/containerbase.py
===================================================================
--- PyCalendar/branches/json-2/src/pycalendar/containerbase.py 2013-08-31 21:14:10 UTC (rev 11650)
+++ PyCalendar/branches/json-2/src/pycalendar/containerbase.py 2013-09-03 00:40:32 UTC (rev 11651)
@@ -26,8 +26,8 @@
Represents the top-level component (i.e., VCALENDAR or vCARD)
"""
- sProdID = "-//mulberrymail.com//Mulberry v4.0//EN"
- sDomain = "mulberrymail.com"
+ sProdID = "-//calendarserver.org//PyCalendar v1//EN"
+ sDomain = "calendarserver.org"
# These must be set by derived classes
sContainerDescriptor = None
Modified: PyCalendar/branches/json-2/src/pycalendar/datetime.py
===================================================================
--- PyCalendar/branches/json-2/src/pycalendar/datetime.py 2013-08-31 21:14:10 UTC (rev 11650)
+++ PyCalendar/branches/json-2/src/pycalendar/datetime.py 2013-09-03 00:40:32 UTC (rev 11651)
@@ -300,6 +300,14 @@
self.changed()
+ def setYYMMDD(self, year, month, days):
+ if (self.mYear != year) or (self.mMonth != month) or (self.mDay != days):
+ self.mYear = year
+ self.mMonth = month
+ self.mDay = days
+ self.changed()
+
+
def getYear(self):
return self.mYear
Modified: PyCalendar/branches/json-2/src/pycalendar/icalendar/calendar.py
===================================================================
--- PyCalendar/branches/json-2/src/pycalendar/icalendar/calendar.py 2013-08-31 21:14:10 UTC (rev 11650)
+++ PyCalendar/branches/json-2/src/pycalendar/icalendar/calendar.py 2013-09-03 00:40:32 UTC (rev 11651)
@@ -42,9 +42,6 @@
FIND_EXACT = 0
FIND_MASTER = 1
- sProdID = "-//mulberrymail.com//Mulberry v4.0//EN"
- sDomain = "mulberrymail.com"
-
sContainerDescriptor = "iCalendar"
sComponentType = Component
sPropertyType = Property
Modified: PyCalendar/branches/json-2/src/pycalendar/icalendar/componentrecur.py
===================================================================
--- PyCalendar/branches/json-2/src/pycalendar/icalendar/componentrecur.py 2013-08-31 21:14:10 UTC (rev 11650)
+++ PyCalendar/branches/json-2/src/pycalendar/icalendar/componentrecur.py 2013-09-03 00:40:32 UTC (rev 11651)
@@ -280,9 +280,12 @@
self.mEnd = self.mStart + temp
self.mDuration = True
else:
- # If no end or duration then use the start
+ # If no end or duration then use the start (bumped by one day for
+ # an all day event)
self.mHasEnd = False
self.mEnd = self.mStart.duplicate()
+ if self.mEnd.isDateOnly():
+ self.mEnd.offsetDay(1)
self.mDuration = False
else:
self.mHasEnd = True
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20130902/26d983fc/attachment.html>
More information about the calendarserver-changes
mailing list