Re: ERGroupware changes
Re: ERGroupware changes
- Subject: Re: ERGroupware changes
- From: Pascal Robert <email@hidden>
- Date: Fri, 14 Nov 2014 13:39:31 -0600 (CST)
- Thread-topic: ERGroupware changes
This is the first time I heard from someone who is using ERGroupware :-)
Yeah, the cdav-connector is not complete, I will have to work on this. About the "More than one UID found in calendar", that's because you can only add one vCalendar object by CalDAV. iCal is splitting the file in chunks and send each vCalendar object separately. So instead of adding the event to a calendar object in a loop, you should ship the event in the loop.
----- Mail original -----
De: "Fabian Peters" <email@hidden>
À: "WebObjects-Dev Mailing List List" <email@hidden>
Cc: "Pascal Robert" <email@hidden>
Envoyé: Vendredi 14 Novembre 2014 06:32:07
Objet: Re: ERGroupware changes
Hi Pascal,
I've just started to look into ERGroupware and wanted to make sure I'm using the cdav-connector version, but I cannot seem to find any references to e.g. "zswi.objects" in the code of the cdav-connector branch? It looks like master and cdav-connector are identical.
I bumped into an issue with the old (?) ical4j connector: Calendars.getUid throws a ConstraintViolationException "More than one UID found in calendar" when I add more than one event to a calendar and then try to add it to an existing CalDAVCollection on a DAViCal server:
for (CourseEvent anEvent : aCourse.events()) {
ERGWEvent event = new ERGWEvent(cal);
event.setStartTime(anEvent.startDateTime());
event.setEndTime(anEvent.endDateTime());
…
}
…
CalDAVCollection defaultCollection = store.getCollections()
.objectAtIndex(0);
defaultCollection.addCalendarObject(cal);
Generating the ics file via ERGWPublishCalendarPage works fine and iCal accepts it and pushes it to that same calendar on DAViCal w/o issues.
Fabian
Am 21.09.2013 um 05:02 schrieb Pascal Robert <email@hidden>:
> Hi,
>
> At WOWODC, I said that I wanted to use another library for CalDAV and use it into ERGroupware. Well, I found that other library, in fact I wrote 75% of the code in that library.
>
> https://github.com/Kerio/cdav-connector
>
> If you wish to try ERGroupware with that library, get the source of ERGroupware:
>
> https://github.com/pascalrobert/ERGroupware
>
> And switch to the "cdav-connector" branch. Please note that if you have used ERGroupware in the past, the constructors have changed. That's probably the only change you will have to do in your code.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden