[Dev] setting initial values for items

Andi Vajda vajda at osafoundation.org
Fri Mar 26 11:38:37 PST 2004


During the recent Data Model it was decided that the current implementation
for setting initial attribute values on items was flawed.

Namely, initial attribute values are values that are were set by the data
model upon first access into the attributes. This could lead to some
unexpected problems when attribute values were not obtained through the
regular access APIs but through quueries or iterators.

I re-implemented initial attribute values support to set these values upon
item instantiation as if there was code in the __init__() method setting
these.

I also added and improved support for setting initial values for reference
attributes.

reminder: initial attribute values are defined by setting the 'initialValue'
          aspect of an attribute. See Item.getAttributeAspect() API docs for
          more details.

Andi..



More information about the Dev mailing list