
andrew at morphoss
Jan 3, 2012, 6:38 PM
Post #2 of 5
(759 views)
Permalink
|
On Tue, 2012-01-03 at 12:35 +0100, Matthias Althaus wrote: > Hey there, > > is there a nice and clean way to import an ICS file through > CalDAV/Davical? I found the import_collection() function which doesn't > seem to be a CalDAV standard one. This wouldn't be a problem for me, > but it's somehow only invoked by the web interface. In addition it's > using $_GET["appending"] for control which is quite bad. > > ... or is it just me reading a given file and sending all through a > PUT request? This feels like a bad solution for performance. :( Happy New Year Matthias, Yep, it's a bad solution for performance. But it's *import* right, so you only do it once? :-) I'm pretty sure that the import collection via PUT and the import collection via the web UI both end up running the same piece of code in caldav-PUT-functions.php to do the actual work though. And of course the import via PUT is only available if you set the deliberately obscurely named "readonly_webdav_collection" setting to false. Cheers, Andrew. -- ------------------------------------------------------------------------ andrew (AT) morphoss (DOT) com +64(272)DEBIAN You can get there from here, but why on earth would you want to? ------------------------------------------------------------------------
|