Style fixes in app.soc.views.models.student_project module.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Mon, 27 Apr 2009 13:01:53 +0200
changeset 2281 a702d92a57a6
parent 2280 157f6b8de010
child 2282 47a7eb2704c2
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
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: