Mercurial > public > sg101
comparison forums/tasks.py @ 581:ee87ea74d46b
For Django 1.4, rearranged project structure for new manage.py.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 May 2012 17:10:48 -0500 |
parents | gpp/forums/tasks.py@82b97697312e |
children | f3fded5df64b |
comparison
equal
deleted
inserted
replaced
580:c525f3e0b5d0 | 581:ee87ea74d46b |
---|---|
1 """ | |
2 Celery tasks for the forums application. | |
3 | |
4 """ | |
5 from celery.task import task | |
6 | |
7 import forums.latest | |
8 | |
9 | |
10 @task | |
11 def new_post_task(post_id): | |
12 """ | |
13 This task performs new post processing on a Celery task. | |
14 | |
15 """ | |
16 forums.latest.process_new_post(post_id) | |
17 | |
18 | |
19 @task | |
20 def new_topic_task(topic_id): | |
21 """ | |
22 This task performs new topic processing on a Celery task. | |
23 | |
24 """ | |
25 forums.latest.process_new_topic(topic_id) |