Mercurial > public > sg101
view gpp/forums/tasks.py @ 565:6a265b5768ca
For bitbucket issue #5, rework the duplicate email checking in the registration
form logic. Added tests for registration.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 04 Mar 2012 13:20:40 -0600 |
parents | 82b97697312e |
children |
line wrap: on
line source
""" Celery tasks for the forums application. """ from celery.task import task import forums.latest @task def new_post_task(post_id): """ This task performs new post processing on a Celery task. """ forums.latest.process_new_post(post_id) @task def new_topic_task(topic_id): """ This task performs new topic processing on a Celery task. """ forums.latest.process_new_topic(topic_id)