Added failed_evaluations property to StudentProject model.
This is used to store GradingRecords which state a fail for this project. It's a list because manual changes in GradingRecords might force multiple GradingRecords to state a fail. Also it needs to be clear which GradingRecords have been processed and with which grade_decision.
--- a/app/soc/models/student_project.py Mon Jul 13 18:04:10 2009 +0200
+++ b/app/soc/models/student_project.py Mon Jul 13 21:56:01 2009 +0200
@@ -57,7 +57,7 @@
additional_info.help_text = ugettext(
'Link to a resource containing more information about this project.')
- #: Optional field storing a feed URL; displayed publicly.
+ #: Optional field storing a feed URL; displayed publicly
feed_url = db.LinkProperty(
verbose_name=ugettext('Project Feed URL'))
feed_url.help_text = ugettext(
@@ -65,7 +65,7 @@
'Feed entries are shown on the public page.')
#: A property containing which mentor has been assigned to this project.
- #: A project must have a mentor at all times
+ #: A project must have a mentor at all times.
mentor = db.ReferenceProperty(reference_class=soc.models.mentor.Mentor,
required=True,
collection_name='student_projects')
@@ -92,6 +92,11 @@
#: processed.
passed_evaluations = db.ListProperty(item_type=db.Key, default=[])
+ #: List of all processed GradingRecords which state a fail for this project.
+ #: This is a ListProperty to ensure that the system keeps functioning when
+ #: manual changes in GradingRecords occur.
+ failed_evaluations = db.ListProperty(item_type=db.Key, default=[])
+
#: Student which this project is from
student = db.ReferenceProperty(
reference_class=soc.models.student.Student,