Added a possible_mentors property to the StudentProposal.
authorLennard de Rijk <ljvderijk@gmail.com>
Tue, 03 Mar 2009 22:45:32 +0000
changeset 1608 ddef5428d3c9
parent 1607 4ef383aa54c4
child 1609 cd285bc524f1
Added a possible_mentors property to the StudentProposal. Also set the name and [min,max] score for the RankList. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
app/soc/models/student_proposal.py
--- a/app/soc/models/student_proposal.py	Tue Mar 03 22:39:53 2009 +0000
+++ b/app/soc/models/student_proposal.py	Tue Mar 03 22:45:32 2009 +0000
@@ -32,6 +32,11 @@
 import soc.models.program
 
 
+# define the [min_score, max_score] and the name for the RankList
+DEF_SCORE = [-1000, 1000]
+DEF_RANKER_NAME = 'student_app_ranker'
+
+
 class StudentProposal(soc.models.linkable.Linkable):
   """Model for a student proposal used in the GSoC workflow.
   """
@@ -65,6 +70,10 @@
   mentor = db.ReferenceProperty(reference_class=soc.models.mentor.Mentor,
                               required=False, collection_name='student_proposals')
 
+  #: A property containing a list of possible Mentors for this proposal
+  possible_mentors = db.ListProperty(item_type=db.Key,
+      default=[])
+
   #: the current score of this proposal, used to determine which proposals
   #: should be assigned a project slot.
   score = db.IntegerProperty(required=True, default=0)