[kronolith] Holidays
Brandon Knitter
knitterb@blandsite.org
Sun, 14 Apr 2002 10:06:30 -0700
Sorry to top post, it's just getting a bit long down there! :)
I was not thinking about a gcal call on every page view, I also wasn't even
thinking of using ANY recurrence. I was thinking /really/ simple, and lamost
exactly what you did Jan.
When you get Kronolith installed, one option would be to add holidays (gcal type
things) to your calendar, maybe under options. Once clicked, you would choose
which types, and then a single call to gcal would be made, getting the list of
holidays for, say, 2 years, and that list of events would be added with a
special system defined Keyword, perhaps "Holiday". To remove the holidays, a
simple sql call could be made against a where clause of the keyword.
The simplicity here of no recurrence and no additional calls to gcal makes the
overhead REALLY light, and also make removal and modification of such events
fairly simple.
That was my design idea with an easy entrance point, as well as a simple
integration. I was gonna do a test in perl which creates SQL output, since I
don't know php that well.
--
-bk
Quoting Jan Schneider <jan@horde.org>:
> Zitat von Jon Parise <jon@horde.org>:
>
> > On Sun, Apr 14, 2002 at 07:56:05AM -0500, Eric Rostetter wrote:
> >
> > > > I don't think, it's a good idea to calculate the holidays on every
> > page
> > > > call. That's probably the reason why Outlook solves the holiday
> > problem how
> > > > it does: You just import a list of holidays for the next few years.
> > >
> > > Can't you just import a file, which would have the reccuring events
> > (holidays)
> > > in it? That is, not a file "for the next few years" but a file that
> > works
> > > forever by recurring events (unless holiday dates change, of course).
> >
> > I think Jan's point is that adding additional recurring events would
> > add processing overhead to each page request (whether or not the
> > holiday will appear in the current calendar view).
>
> And we'd have the problem that we can't reproduce all holidays with our
> available recurrence types.
>
> But gcal seems to be quite sufficient, you can say for which period and
> which country you want to have the holidays and it returns it.
>
> Jan.
>
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - discover your knowledge
> http://www.tip4all.de - Deine private Tippgemeinschaft
>
> --
> Kronolith mailing list: http://horde.org/kronolith/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: kronolith-unsubscribe@lists.horde.org
>
>