Mailing List Archive

EXPAND report and editing
Hey there,

I've got a logical problem and hope you can gimme some light:

I'm using a EXPAND report to fetch the calendar data from Davical, so that I don't have to implement any display logic for recurring events. Now I'm on implementing the "Edit only this or all events" choice, if you edit a recurring event instance.

According to RFC4791:

"Recurring components, other than the initial instance, MUST
include a RECURRENCE-ID property indicating which instance they
refer to."

My problem is now the "other than the initial instance" part. That way it's not possible to identify recurring events easily.

Is there a solution for my approach or do I have to expand events myself? :/

Cheers
Matthias
EXPAND report and editing [ In reply to ]
On Wed, 2011-06-08 at 10:31 +0200, Matthias Althaus wrote:
> Hey there,
>
> I've got a logical problem and hope you can gimme some light:
>
> I'm using a EXPAND report to fetch the calendar data from Davical, so
> that I don't have to implement any display logic for recurring events.
> Now I'm on implementing the "Edit only this or all events" choice, if
> you edit a recurring event instance.
>
> According to RFC4791:
>
> "Recurring components, other than the initial instance, MUST
> include a RECURRENCE-ID property indicating which instance they
> refer to."
>
> My problem is now the "other than the initial instance" part. That way
> it's not possible to identify recurring events easily.
>
> Is there a solution for my approach or do I have to expand events
> myself? :/

Hi Matthias,

If you have an expanded event you don't have the original. I think that
the general solution to this is that you have to:

(a) Fetch the original VCALENDAR (not expanded, probably via GET)
(b) Modify it to add your exception
(c) PUT it back to the server.
(d) Refresh your expanded view.

From my reading of the RFC the <expand>ed event may well not contain
full information about the event series, so the only solution will be to
fetch the unexpanded series.

Cheers,
Andrew.

--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
Opened for inspection.
------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.davical.org/pipermail/davical-dev/attachments/20110620/32fad678/attachment.pgp>