Attached is a proposed patch for MailDatabase.getObjects() for grabbing
calendar objects for a specific range. In this case, I want to include any
and all instances of a repeating event. This is handled by getting the
document of the calendar entry and checking for occurrences of repeating
events. For instance, if I create an event on 10/01/2007 and set it to
repeat weekly, I found that the entry would store the initial date
(10/01/2007) as the startdate, therefore if I wanted all entries with a
startdate of 10/02/2007 it wouldn't find it.
This patch uses the occurrences to see if, in this case, 10/02/2007 is in
the list, if so, creates a copy to pass back to the user.
A bit kludgy, and a bit slow (because of the 'getDocumentByUNID'?)
Thoughts?
Dave
Dave Rowe
groupware
Unstable (example)
Public
| Filename | Description | Download |
|---|---|---|
| RepeatingEvents_v1.patch | MailDatabase.getObjects implementation | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2007-10-24 13:50 | d-rizzle |
| resolution_id | Accepted | 2007-10-24 13:50 | d-rizzle |
| close_date | - | 2007-10-24 13:50 | d-rizzle |
| resolution_id | None | 2007-10-23 22:41 | kriede |
| assigned_to | kriede | 2007-10-23 22:41 | kriede |
| File Added | 251044: RepeatingEvents_v1.patch | 2007-10-23 20:52 | d-rizzle |