From 9852a581f0b23c88ce491ad97bbed90cb760d4b4 Mon Sep 17 00:00:00 2001 From: kimth Date: Mon, 20 Aug 2012 13:43:55 -0400 Subject: [PATCH] Adjust comments --- common/lib/xmodule/xmodule/course_module.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/lib/xmodule/xmodule/course_module.py b/common/lib/xmodule/xmodule/course_module.py index b647cf77ed..dedf4c86ec 100644 --- a/common/lib/xmodule/xmodule/course_module.py +++ b/common/lib/xmodule/xmodule/course_module.py @@ -27,15 +27,12 @@ class CourseDescriptor(SequenceDescriptor): @property def table_of_contents(self): - ''' - raw_table_of_contents = open(self.book_url, 'r') # TODO: This will need to come from S3 - table_of_contents = etree.parse(raw_table_of_contents).getroot() - return table_of_contents - ''' return self.table_of_contents def _get_toc_from_s3(self): ''' + Accesses the textbook's table of contents (default name "toc.xml") at the URL self.book_url + Returns XML tree representation of the table of contents ''' toc_url = self.book_url + 'toc.xml'