equal
deleted
inserted
replaced
36 |
36 |
37 from soc.cache import home |
37 from soc.cache import home |
38 from soc.logic import cleaning |
38 from soc.logic import cleaning |
39 from soc.logic import dicts |
39 from soc.logic import dicts |
40 from soc.logic.models.survey import logic as survey_logic |
40 from soc.logic.models.survey import logic as survey_logic |
41 from soc.logic.models.survey import results_logic |
|
42 from soc.logic.models.survey import GRADES |
41 from soc.logic.models.survey import GRADES |
43 from soc.logic.models.user import logic as user_logic |
42 from soc.logic.models.user import logic as user_logic |
44 from soc.models.survey import Survey |
43 from soc.models.survey import Survey |
45 from soc.models.survey_record import SurveyRecord |
44 from soc.models.survey_record import SurveyRecord |
46 from soc.models.user import User |
45 from soc.models.user import User |
735 def viewResults(self, request, access_type, page_name=None, |
734 def viewResults(self, request, access_type, page_name=None, |
736 params=None, **kwargs): |
735 params=None, **kwargs): |
737 """View for SurveyRecord and SurveyRecordGroup. |
736 """View for SurveyRecord and SurveyRecordGroup. |
738 """ |
737 """ |
739 |
738 |
|
739 results_logic = params['logic'].getRecordLogic() |
|
740 |
740 user = user_logic.getForCurrentAccount() |
741 user = user_logic.getForCurrentAccount() |
741 |
742 |
742 # TODO(ajaksu) use the named parameter link_id from the re |
743 # TODO(ajaksu) use the named parameter link_id from the re |
743 if request.path == '/survey/show/user/' + user.link_id: |
744 if request.path == '/survey/show/user/' + user.link_id: |
744 records = tuple(user.surveys_taken.run()) |
745 records = tuple(user.surveys_taken.run()) |