[kforge-dev] changes to domain object attributes: does this result in an update event
john.bywater at appropriatesoftwarefoundation.org
Mon Dec 19 19:54:39 UTC 2005
Currently, that code would not result in a persistent change, because
the save() method hasn't been called.
Calling save() on a DomainObject maps all attributes to the database
record, and then calls the raiseUpdate() method.
I fairly sure the system performance would be compromised if a call to
the database is made each time an attribute is changed.
Rufus Pollock wrote:
> Imagine i do the following:
> reg = kforge.dom.DomainRegistry()
> person = reg.persons['anna']
> project = reg.projects['annakarenina']
> memberAnna = project.members[person]
> newRole = reg.roles['Friend']
> # current role is developer
> memberAnna.role = newRole
> My question is: does this result in an onMemberUpdate event?
> I suggest that it should and that in fact all **setting** of
> attributes on domain objects should result in the raising of an update
> event for that domain object (for those domain objects that have an
> update event).
> kforge-dev mailing list
> kforge-dev at lists.okfn.org
More information about the kforge-dev