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
--- a/app/soc/views/models/student.py Wed Apr 15 15:56:17 2009 +0000
+++ b/app/soc/views/models/student.py Wed Apr 15 16:05:29 2009 +0000
@@ -34,6 +34,7 @@
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 @@
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