[cosmo-dev] Creating Tasks from Lightning

Brian Moseley bcm at osafoundation.org
Fri Dec 21 09:25:05 PST 2007


On Dec 21, 2007 7:21 AM, Alan Lord <alanslists at gmail.com> wrote:

> I notice some problems when I try to create a task using the "New Task"
> dialogue in Lightning.
>
> Although the "task" itself is created on Cosmo, it does not seem to
> record any of the following bits of information:
>
> * Start Date/Time
> * End Date/Time
> * Status of task
> * Percentage completed of task

what specifically do you mean by "record"? the Cosmo web UI doesn't
know about these attributes of an iCalendar task, but the server
should store the entire iCalendar object sent by Lightning.

could you use the account browser to view the item and copy and paste
the "Original iCalendar" section into a reply so we can see what it
looks like?

> Also, if the start/end times are filled in, I would like to be able to
> determine (probably as a default setting per user) whether the task
> should be added to the calendar or not.

that's an interesting idea, but see below for why this might not work
the way you would like it to.

> I checked bugzilla and found this:
> https://bugzilla.osafoundation.org/show_bug.cgi?id=11236
>
> Is this pretty much the same problem?

I don't think so. that bug is about setting the Cosmo-specific triage
status of an item based on certain iCalendar properties. triage status
determines where the item is sorted in the dashboard view of a
collection. it is ignored in the calendar view.

> If, conversely, I create a task in Cosmo. When I reload the collection
> in Lightning, it displays the task as an *event* and not a task...

this should only happen if you stamp the item as both an event and a
task. in that case, Cosmo has to decide how to represent the item in
iCalendar. CalDAV rules require that the item be represented as an
event or as a task but not both. if an item is stamped as an event,
then it is represented in iCalendar as an event, regardless of the
fact that it might also be stamped as a task. if it is stamped only as
a task, then it is represented in iCalendar as a task.

if you want an item to exist in the Cosmo calendar view, you have to
stamp it as an event. this is one place where Cosmo's design conflicts
with the iCalendar data model used by iCal and Lightning. it's
unfortunate.


More information about the cosmo-dev mailing list