# HG changeset patch # User Pawel Solyga # Date 1240830113 -7200 # Node ID a702d92a57a62101078040a9f91473b09386235f # Parent 157f6b8de010b33eab7578259e44a2e440b0bb8e Style fixes in app.soc.views.models.student_project module. Too long line and missing whitespace. Patch by: Pawel Solyga Reviewed by: to-be-reviewed diff -r 157f6b8de010 -r a702d92a57a6 app/soc/views/models/student_project.py --- a/app/soc/views/models/student_project.py Sat Apr 25 20:52:03 2009 +0200 +++ b/app/soc/views/models/student_project.py Mon Apr 27 13:01:53 2009 +0200 @@ -247,7 +247,7 @@ if additional_mentors and mentor.key() in additional_mentors: # remove the mentor from the additional mentors list additional_mentors.remove(mentor.key()) - fields= {'additional_mentors': additional_mentors} + fields = {'additional_mentors': additional_mentors} project_logic.updateEntityProperties(entity, fields) # redirect to the same page without GET arguments @@ -306,7 +306,8 @@ # all mentors who are not already an additional mentor or # the primary mentor are allowed to become an additional mentor possible_additional_mentors = [m for m in mentors if - (m.key() not in additional_mentors) and (m.key() != entity.mentor.key())] + (m.key() not in additional_mentors) + and (m.key() != entity.mentor.key())] # create the information to be shown on the additional mentor form additional_mentor_choices = [ @@ -423,7 +424,8 @@ redirect = request.path return http.HttpResponseRedirect(redirect) - def _manageAddAdditionalMentor(self, request, template, context, params, entity, form): + def _manageAddAdditionalMentor(self, request, template, + context, params, entity, form): """Handles the POST request for changing a Projects's additional mentors. Args: