From 845a104ab705315aa1aea5586c36854fab5af8c2 Mon Sep 17 00:00:00 2001 From: Pawel Solyga Date: Wed, 15 Apr 2009 16:05:29 +0000 Subject: [PATCH] Add missing responses import and replace usage of helper.responses with just responses in soc.views.models.student module. Patch by: Pawel Solyga Reviewed by: to-be-reviewed --- app/soc/views/models/student.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/soc/views/models/student.py b/app/soc/views/models/student.py index 4db51e58..8ee384b9 100644 --- a/app/soc/views/models/student.py +++ b/app/soc/views/models/student.py @@ -34,6 +34,7 @@ from soc.views import out_of_band from soc.views.helper import access from soc.views.helper import decorators from soc.views.helper import dynaform +from soc.views.helper import responses from soc.views.helper import redirects from soc.views.helper import widgets from soc.views.models import program as program_view @@ -174,7 +175,7 @@ class View(role.View): try: student_entity = student_logic.logic.getFromKeyFieldsOr404(fields) except out_of_band.Error, error: - return helper.responses.errorResponse( + return responses.errorResponse( error, request, template=params['error_public']) # set the fields we need for the Student Project list -- 2.11.4.GIT