app/soc/views/models/student_project.py
changeset 2360 e389d26949db
parent 2330 068540d91bde
child 2573 f09f317769c4
--- a/app/soc/views/models/student_project.py	Wed May 27 00:31:40 2009 +0200
+++ b/app/soc/views/models/student_project.py	Wed May 27 01:47:38 2009 +0200
@@ -75,7 +75,7 @@
         ('checkStudentProjectHasStatus', [['accepted', 'mid_term_passed']])]
     rights['manage_overview'] = [('checkHasActiveRoleForScope',
                          org_admin_logic)]
-    # TODO lack of better name here!
+    # TODO: lack of better name here!
     rights['st_edit'] = ['checkIsMyStudentProject',
         ('checkStudentProjectHasStatus',
             [['accepted', 'mid_term_passed', 'passed']])
@@ -244,6 +244,7 @@
       mentor = mentor_logic.logic.getForFields(fields, unique=True)
 
       additional_mentors = entity.additional_mentors
+      # pylint: disable-msg=E1103
       if additional_mentors and mentor.key() in additional_mentors:
         # remove the mentor from the additional mentors list
         additional_mentors.remove(mentor.key())
@@ -411,6 +412,7 @@
 
     additional_mentors = entity.additional_mentors
 
+    # pylint: disable-msg=E1103
     if additional_mentors and mentor.key() in additional_mentors:
       # remove the mentor that is now becoming the primary mentor
       additional_mentors.remove(mentor.key())
@@ -453,6 +455,7 @@
     mentor = mentor_logic.logic.getForFields(fields, unique=True)
 
     # add this mentor to the additional mentors
+    # pylint: disable-msg=E1103
     if not entity.additional_mentors:
       additional_mentors = [mentor.key()]
     else: