From ba5cbb64d58f7e39cebf4efc22b79ad2ba5b6949 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Fri, 6 Feb 2015 19:12:26 -0500 Subject: [PATCH] Add course publish signal to old Mongo modulestore. --- common/lib/xmodule/xmodule/modulestore/mongo/draft.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lib/xmodule/xmodule/modulestore/mongo/draft.py b/common/lib/xmodule/xmodule/modulestore/mongo/draft.py index fc1c174b8f..7e0c065dd4 100644 --- a/common/lib/xmodule/xmodule/modulestore/mongo/draft.py +++ b/common/lib/xmodule/xmodule/modulestore/mongo/draft.py @@ -722,6 +722,8 @@ class DraftModuleStore(MongoModuleStore): # Now it's been published, add the object to the courseware search index so that it appears in search results CoursewareSearchIndexer.add_to_search_index(self, location) + if self.signal_handler: + self.signal_handler.send("course_published", course_key=location.course_key) return self.get_item(as_published(location))