Remove debugging print statements
This commit is contained in:
@@ -401,7 +401,6 @@ class CourseDescriptor(SequenceDescriptor):
|
||||
|
||||
@property
|
||||
def start_date_text(self):
|
||||
print self.advertised_start, self.start
|
||||
return time.strftime("%b %d, %Y", self.advertised_start or self.start)
|
||||
|
||||
@property
|
||||
|
||||
@@ -36,8 +36,6 @@ def yield_dynamic_descriptor_descendents(descriptor, module_creator):
|
||||
def get_dynamic_descriptor_children(descriptor):
|
||||
if descriptor.has_dynamic_children():
|
||||
module = module_creator(descriptor)
|
||||
if module is None:
|
||||
print "FOO", descriptor
|
||||
child_locations = module.get_children_locations()
|
||||
return [descriptor.system.load_item(child_location) for child_location in child_locations ]
|
||||
else:
|
||||
|
||||
@@ -92,7 +92,6 @@ def toc_for_course(user, request, course, active_chapter, active_section):
|
||||
|
||||
chapters = list()
|
||||
for chapter in course_module.get_display_items():
|
||||
print chapter, chapter._model_data, chapter._model_data.get('hide_from_toc'), chapter.lms.hide_from_toc
|
||||
if chapter.lms.hide_from_toc:
|
||||
continue
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@ from xmodule.fields import Date
|
||||
|
||||
class StringyBoolean(Boolean):
|
||||
def from_json(self, value):
|
||||
print "StringyBoolean ", value
|
||||
if isinstance(value, basestring):
|
||||
return value.lower() == 'true'
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user