Commit bd9c0732 by David Ormsbee

Change config key from EDX_TIM to EDX_ORA2

parent aee89c7f
......@@ -24,8 +24,8 @@ logger = logging.getLogger('openassessment.workflow.models')
# This will (hopefully soon) be replaced with calls to the event-tracking API:
# https://github.com/edx/event-tracking
if hasattr(settings, "EDX_TIM") and "EVENT_LOGGER" in settings.EDX_TIM:
func_path = settings.EDX_TIM["EVENT_LOGGER"]
if hasattr(settings, "EDX_ORA2") and "EVENT_LOGGER" in settings.EDX_ORA2:
func_path = settings.EDX_ORA2["EVENT_LOGGER"]
module_name, func_name = func_path.rsplit('.', 1)
emit_event = getattr(importlib.import_module(module_name), func_name)
else:
......
......@@ -150,6 +150,6 @@ CACHES = {
},
}
EDX_TIM = {
EDX_ORA2 = {
}
\ No newline at end of file
......@@ -43,4 +43,4 @@ LETTUCE_SERVER_PORT = 8005
# Install test-specific Django apps
INSTALLED_APPS += ('django_nose', 'lettuce.django',)
EDX_TIM["EVENT_LOGGER"] = "openassessment.workflow.test.events.fake_event_logger"
EDX_ORA2["EVENT_LOGGER"] = "openassessment.workflow.test.events.fake_event_logger"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment