We need to allow the user to change some of these settings .'''
ifnotrequest.user.is_authenticated():
returnredirect('/')
dom=content_parser.course_file(request.user)
hw=[]
course=dom.xpath('//course/@name')[0]
...
...
@@ -62,7 +55,7 @@ def profile(request):
correct=response.grade
else:
correct=0
total=courseware.modules.capa_module.LoncapaModule(etree.tostring(p),"id").max_score()# TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?
total=capa_module.LoncapaModule(etree.tostring(p),"id").max_score()# TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?