Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DAViCal: Dev

vtodo CalDAVClient issue

 

 

DAViCal dev RSS feed   Index | Next | Previous | View Threaded


ewout at grooves

Mar 30, 2012, 7:04 AM

Post #1 of 2 (563 views)
Permalink
vtodo CalDAVClient issue

Getting a vtodo using the CalDAVClient->GetEntryByUid fails

In the postgres log I can see why it fails. The query executed is:

SELECT caldav_data.*,calendar_item.*  FROM collection INNER JOIN
caldav_data USING(collection_id) INNER JOIN calendar_item
USING(dav_id)  WHERE caldav_data.collection_id = 78 AND
caldav_data.caldav_type = 'VEVENT' AND (uid IS NULL OR uid ILIKE
'%20120327T095925Z-QWO4h9T%')

If I change the caldav_type to VTODO it works. How can I make the
getEntryByUid return the VTODO?

Cheers,
Ewout
_______________________________________________
DAViCal-dev mailing list
DAViCal-dev [at] lists
http://lists.davical.org/listinfo/davical-dev


andrew at morphoss

Apr 3, 2012, 5:11 PM

Post #2 of 2 (522 views)
Permalink
Re: vtodo CalDAVClient issue [In reply to]

On Fri, 2012-03-30 at 16:04 +0200, Ewout de Langen wrote:
> Getting a vtodo using the CalDAVClient->GetEntryByUid fails
>
> In the postgres log I can see why it fails. The query executed is:
>
> SELECT caldav_data.*,calendar_item.* FROM collection INNER JOIN
> caldav_data USING(collection_id) INNER JOIN calendar_item
> USING(dav_id) WHERE caldav_data.collection_id = 78 AND
> caldav_data.caldav_type = 'VEVENT' AND (uid IS NULL OR uid ILIKE
> '%20120327T095925Z-QWO4h9T%')
>
> If I change the caldav_type to VTODO it works. How can I make the
> getEntryByUid return the VTODO?

Hi Ewout,

Thanks for the bug report.

I've added a third parameter to the GetEntryByUid() method so the
signature is now:

GetEntryByUid( $uid, $relative_url = '', $component_type = 'VEVENT' )

So any existing calls for VEVENT should work, and you can now use the
third parameter as 'VTODO' for your case.


Obviously that's not released - you'll have to pull the updated from
Git, but it will be included in the next DAViCal release.


Cheers,
Andrew.

--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
To use violence is to already be defeated.
-- Chinese proverb

------------------------------------------------------------------------
Attachments: signature.asc (0.82 KB)

DAViCal dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.