[Chandler-dev] Dashboard domain model questions
Grant Baillie
grant at osafoundation.org
Thu Jun 29 13:51:11 PDT 2006
On 29 Jun, 2006, at 13:23, Andi Vajda wrote:
>> - Do we need specific Calculated methods for index-dependent
>> dynamic values? (Does Calculated need to move to Schema for this?)
>
> What is a 'Calculated' method ?
I think Bryan meant "Calculated attributes" not "Calculated methods",
the API for properties (Calculated is a subclass of Python's builtin
property, with a couple of extra fields that aren't really used). One
example is CalendarEventMixin.endTime, which is calculated from the
startTime and duration attributes.
See: parcels/osaf/pim/items.py, lines 64--80 for the implementation,
parcel/osaf/pim/calendar/Calendar.py for some code where it's used.
--Grant
More information about the chandler-dev
mailing list