From b9e5e9f0ee61ba5635a4c352be66eab05a66918e Mon Sep 17 00:00:00 2001 From: kimth Date: Mon, 30 Jul 2012 20:18:25 -0400 Subject: [PATCH] Read XML for queuename --- common/lib/capa/capa/responsetypes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/lib/capa/capa/responsetypes.py b/common/lib/capa/capa/responsetypes.py index 2a50b85cf7..944b84bf61 100644 --- a/common/lib/capa/capa/responsetypes.py +++ b/common/lib/capa/capa/responsetypes.py @@ -811,6 +811,7 @@ class CodeResponse(LoncapaResponse): def setup_response(self): xml = self.xml self.url = xml.get('url', "http://107.20.215.194/xqueue/submit/") # FIXME -- hardcoded url + self.queue_name = xml.get('queuename', 'python') # TODO: Default queue_name should be course-specific answer = xml.find('answer') if answer is not None: @@ -905,7 +906,7 @@ class CodeResponse(LoncapaResponse): # Prepare payload xmlstr = etree.tostring(self.xml, pretty_print=True) header = {'return_url': self.system.xqueue_callback_url, - 'queue_name': 'mitx-600x', # TODO: Queue name should derive from courseware or XML + 'queue_name': self.queue_name, } # Queuekey generation