Child: [c2310a] (diff)

Download this file

notification_tasks.py    12 lines (8 with data), 230 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
import logging
from allura import model as M
from allura.lib.decorators import task
log = logging.getLogger(__name__)
@task
def notify(n_id, ref_id, topic):
M.Mailbox.deliver(n_id, ref_id, topic)
M.Mailbox.fire_ready()