[Cosmo-dev] IMPORTANT: eventRegistry is now
cosmo.view.cal.itemRegistry
Matthew Eernisse
mde at osafoundation.org
Fri Jun 22 11:56:41 PDT 2007
Cosmoers,
Just a quick heads-up -- as a part of adding the list view for the UI,
I've created a parallel structure for storing the list of items for each
of the two views.
We used to have this:
cosmo.view.cal.canvas.eventRegistry
Now we have these:
cosmo.view.cal.itemRegistry
cosmo.view.list.itemRegistry
They are both Hashes (i.e., cosmo.util.hash.Hash) -- where the key is
the UID of the item (set using getItemUid(), which gives you a properly
unique UID for each item, including recurrence ocurrences), and the
value is either a CalItem or ListItem, depending on the view.
The CalItems/ListItems each have a 'data' property which points at their
stamped Note.
If you have any questions, please give me a shout.
Thanks.
Matthew
More information about the cosmo-dev
mailing list