[Dev] item collection decisions
grant at osafoundation.org
Tue Jul 5 11:45:18 PDT 2005
On Jul 5, 2005, at 9:10 , Alec Flett wrote:
> Ted Leung wrote:
>> On Jul 1, 2005, at 10:54 AM, Grant Baillie wrote:
>>> My understanding of the recurrence spec is that
>>> CalendarEventMixin has a method
>>> getOccurrencesBetween(start, end) -> check for virtual events
>>> that end after start and start before end, create any that don't
>>> already exist, return an iterable of events ordered by startTime
>>> In the given case, don't we just need to run this on each
>>> calendar event in the collection we're given? i.e. adding a
>>> "pregeneration" callback API, and compiling a query, seem overly
>>> complex to me. (Of course, there are plenty of other use cases
>>> for FilteredCollections).
>> This goal came from the recurrence spec. If you guys want to call
>> getOccurrences before executing the query, that's less work for me.
> Yes! we still need this - and no we can't call getOccurences before
> executing the query, because we don't have the items in the query
> that we'd call getOccurences on!
> Its a bit of chicken-and-egg and so we really need the query to
> call us back..
I thought we did have the items: we iterate over the items in the
collection that's the result of filtering the sidebar collection by
More information about the Dev