def _notify_resourcewatchers(project, resource, signal):
    context = {'project': project,
               'resource': resource,
    }
    logger.debug("addon-watches: Sending notification for '%s'" % resource)
    if signal == 'project_resource_added':
        observed_instance = project
    else:
        observed_instance = resource
    txnotification.send_observation_notices_for(observed_instance,
            signal=signal, extra_context=context)
Notify watchers of a resource add/change
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/watches/handlers.py/_notify_resourcewatchers