Generic ChangeListener events
The proposal is inspired by #8834. Initial proposition suggests a new IResourceChangeListener interface:
"""Extension point interface for components that require notification
when resources are created, modified, or deleted.
'resource' parameters is instance of the a resource e.g. ticket, milestone
'context' is an action context, may contain author, comment etc. Context
content depends on a resource type.
Implementation should return iterator of resource types for which
the listener has to be notified.
None or empty list means all types of resources.
def resource_created(resource, context):
Called when a resource is created.
def resource_changed(resource, old_values, context):
"""Called when a resource is modified.
`old_values` is a dictionary containing the previous values of the
resource properties that changed. Properties are specific for resource
def resource_deleted(resource, context):
"""Called when a resource is deleted."""
def resource_version_deleted(resource, context):
"""Called when a version of a resource has been deleted."""
Please consider discussion related to this ticket on Trac Development group.
There is discussion on Bloodhound project about addition another ChangingListener interface for within transaction events and unifying I*Manipulator interfaces. So, the solution for the generic ChangeListener events implementation can be used as basis for other generic events.
unscheduled → next-major-releases
next-major-releases → next-dev-1.1.x
next-dev-1.1.x → next-dev-1.3.x
next-dev-1.3.x → next-dev-1.5.x