annotate forums/tasks.py @ 693:ad69236e8501

For issue #52, update many 3rd party Javascript libraries. Updated to jquery 1.10.2, jquery ui 1.10.3. This broke a lot of stuff. - Found a newer version of the jquery cycle all plugin (3.0.3). - Updated JPlayer to 2.4.0. - Updated to MarkItUp 1.1.14. This also required me to add multiline attributes set to true on various buttons in the markdown set. - As per a stackoverflow post, added some code to get multiline titles in a jQuery UI dialog. They removed that functionality but allow you to put it back. Tweaked the MarkItUp preview CSS to show blockquotes in italic. Did not update TinyMCE at this time. I'm not using the JQuery version and this version appears to work ok for now. What I should do is make a repo for MarkItUp and do a vendor branch thing so I don't have to futz around diffing directories to figure out if I'll lose changes when I update.
author Brian Neal <bgneal@gmail.com>
date Wed, 04 Sep 2013 19:55:20 -0500
parents f3fded5df64b
children aeafbf3ecebf
rev   line source
bgneal@522 1 """
bgneal@522 2 Celery tasks for the forums application.
bgneal@522 3
bgneal@522 4 """
bgneal@522 5 from celery.task import task
bgneal@522 6
bgneal@522 7 import forums.latest
bgneal@522 8
bgneal@522 9
bgneal@522 10 @task
bgneal@522 11 def new_post_task(post_id):
bgneal@522 12 """
bgneal@522 13 This task performs new post processing on a Celery task.
bgneal@522 14
bgneal@522 15 """
bgneal@522 16 forums.latest.process_new_post(post_id)
bgneal@522 17
bgneal@522 18
bgneal@522 19 @task
bgneal@595 20 def updated_post_task(post_id):
bgneal@595 21 """
bgneal@595 22 This task performs updated post processing on a Celery task.
bgneal@595 23
bgneal@595 24 """
bgneal@595 25 forums.latest.process_updated_post(post_id)
bgneal@595 26
bgneal@595 27
bgneal@595 28 @task
bgneal@522 29 def new_topic_task(topic_id):
bgneal@522 30 """
bgneal@522 31 This task performs new topic processing on a Celery task.
bgneal@522 32
bgneal@522 33 """
bgneal@522 34 forums.latest.process_new_topic(topic_id)
bgneal@595 35
bgneal@595 36
bgneal@595 37 @task
bgneal@595 38 def updated_topic_task(topic_id):
bgneal@595 39 """
bgneal@595 40 This task performs updated topic processing on a Celery task.
bgneal@595 41
bgneal@595 42 """
bgneal@595 43 forums.latest.process_updated_topic(topic_id)