calendar_template module

8 views
Skip to first unread message

Albert Cervera i Areny

unread,
Jan 27, 2012, 3:35:28 AM1/27/12
to tryto...@googlegroups.com

I've been taking a look at calendar_template [1] and I like the concept. It can be very useful for having country/region holiday templates the same way we have for accounts, and I think it would be a good addition to core modules.

BTW, I've seen that function check_event_match() and get_event_ruleset() don't seem to be used in the module itself or any other one. Are they really needed?


[1] https://bitbucket.org/ukoma/calendar_template
--

Albert Cervera i Areny

http://www.NaN-tic.com

Tel: +34 93 553 18 03


http://twitter.com/albertnan

http://www.nan-tic.com/blog

Cédric Krier

unread,
Jan 27, 2012, 4:40:23 AM1/27/12
to tryto...@googlegroups.com
On 27/01/12 09:35 +0100, Albert Cervera i Areny wrote:
> I've been taking a look at calendar_template [1] and I like the concept. It
> can be very useful for having country/region holiday templates the same way we
> have for accounts, and I think it would be a good addition to core modules.

Indeed, I don't see the requirements for calendar template.
Any CalDAV client can show many calendars at the same time and so for
such static event as holiday, I think it is enough to just share it.

So event could be created by XML with the noupdate state or just allow
to edit xml record for event Model.

--
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric...@b2ck.com
Website: http://www.b2ck.com/

Korbinian Preisler

unread,
Jan 30, 2012, 1:33:54 AM1/30/12
to tryto...@googlegroups.com
Am Freitag, den 27.01.2012, 09:35 +0100 schrieb Albert Cervera i Areny:
> I've been taking a look at calendar_template [1] and I like the
> concept. It can be very useful for having country/region holiday
> templates the same way we have for accounts, and I think it would be a
> good addition to core modules.
thx.

>
>
> BTW, I've seen that function check_event_match() and
> get_event_ruleset() don't seem to be used in the module itself or any
> other one. Are they really needed?
We can move them to a custom module.
>
>
> [1] https://bitbucket.org/ukoma/calendar_template

--
Korbinian Preisler
____________________________________
virtual things
Preisler & Spallek GbR
Munich - Aix-la-Chapelle

Windeckstr. 77
81375 Munich - Germany
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56

in...@virtual-things.biz
http://www.virtual-things.biz

Korbinian Preisler

unread,
Jan 30, 2012, 1:38:07 AM1/30/12
to tryto...@googlegroups.com
Am Freitag, den 27.01.2012, 10:40 +0100 schrieb Cédric Krier:
> On 27/01/12 09:35 +0100, Albert Cervera i Areny wrote:
> > I've been taking a look at calendar_template [1] and I like the concept. It
> > can be very useful for having country/region holiday templates the same way we
> > have for accounts, and I think it would be a good addition to core modules.
>
> Indeed, I don't see the requirements for calendar template.
> Any CalDAV client can show many calendars at the same time and so for
> such static event as holiday, I think it is enough to just share it.
>
> So event could be created by XML with the noupdate state or just allow
> to edit xml record for event Model.

Unfortunately caldav api does not support recurrence rules dependent on
easter. This was the reason why we created this module. Are you really
sure that you want to provide static data for holidays dependent on
easter? What date range do you want to provide?

I think our module is more flexible at this point because you can decide
by yourself which date range you want to fill into your calendar.

I also know some calendar clients that do not like recurrence rules with
many recurrence dates. They will loose performance if you will provide a
big date range for easter dates.

Cédric Krier

unread,
Jan 30, 2012, 4:50:43 AM1/30/12
to tryto...@googlegroups.com
On 30/01/12 07:38 +0100, Korbinian Preisler wrote:
> Am Freitag, den 27.01.2012, 10:40 +0100 schrieb Cédric Krier:
> > On 27/01/12 09:35 +0100, Albert Cervera i Areny wrote:
> > > I've been taking a look at calendar_template [1] and I like the concept. It
> > > can be very useful for having country/region holiday templates the same way we
> > > have for accounts, and I think it would be a good addition to core modules.
> >
> > Indeed, I don't see the requirements for calendar template.
> > Any CalDAV client can show many calendars at the same time and so for
> > such static event as holiday, I think it is enough to just share it.
> >
> > So event could be created by XML with the noupdate state or just allow
> > to edit xml record for event Model.
>
> Unfortunately caldav api does not support recurrence rules dependent on
> easter. This was the reason why we created this module. Are you really
> sure that you want to provide static data for holidays dependent on
> easter? What date range do you want to provide?

So don't use a recurrent event for easter.

Reply all
Reply to author
Forward
0 new messages