Re: Events diplayed as tasks?

Jules Colding <[email protected]>
Newsgroups gmane.comp.gnome.evolution.devel
Message-ID <[email protected]>
Hi Harish,

On Tue, 2006-06-20 at 11:21 +0530, Harish Krishnaswamy wrote:
> If a single cache holds both events and backends - you need to filter
> the cache contents based on their type (VEVENT/VTODO).
> 
> Eg :
> 	kind = icalcomponent_isa (icalcomp);
> 
> 
>         if (kind == ICAL_VEVENT_COMPONENT) 
> 		{...}
> 	if (kind == ICAL_VTODO_COMPONENT)
> 		{...}

Thanks a lot. 

Yesterday I discovered that I had given both kind of backend instances
the same relative_url which resulted in identical URIs thus making the
two share the same cache file :-( 

The start_query() method then returned the same unfiltered objects from
the cache. Differentiating the URIs solved the problem.


Best regards,
  jules


> 
> HTH,
> Harish	
> 
> On Fri, 2006-06-16 at 15:31 +0200, Jules Colding wrote:
> > Hi,
> > 
> > I have a functioning calendar backend that supports events as well as
> > tasks. The events are displayed in the calendar as expected, but they
> > are also appearing as tasks in the summary list. Why??
> > 
> > I haven't even populated the task cache yet, so everything displayed in
> > the task list is really nothing but a common event. 
> > 
> > Should events display in the task list or how can I stop them from doing
> > so??
> > 
> > Illustrative screenshot:
> > 
> > http://www.omesc.com/content/downloads/screenshots/event_tasks.png
> > 
> > 
> > Thanks a lot in advance,
> >   jules
> > 
> > 
> > _______________________________________________
> > Evolution-hackers mailing list
> > [email protected]
> > http://mail.gnome.org/mailman/listinfo/evolution-hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.