55 #: Optional, URL which can give more information about this project |
55 #: Optional, URL which can give more information about this project |
56 additional_info = db.URLProperty(required=False) |
56 additional_info = db.URLProperty(required=False) |
57 additional_info.help_text = ugettext( |
57 additional_info.help_text = ugettext( |
58 'Link to a resource containing more information about this project.') |
58 'Link to a resource containing more information about this project.') |
59 |
59 |
60 #: Optional field storing a feed URL; displayed publicly. |
60 #: Optional field storing a feed URL; displayed publicly |
61 feed_url = db.LinkProperty( |
61 feed_url = db.LinkProperty( |
62 verbose_name=ugettext('Project Feed URL')) |
62 verbose_name=ugettext('Project Feed URL')) |
63 feed_url.help_text = ugettext( |
63 feed_url.help_text = ugettext( |
64 'The URL should be a valid ATOM or RSS feed. ' |
64 'The URL should be a valid ATOM or RSS feed. ' |
65 'Feed entries are shown on the public page.') |
65 'Feed entries are shown on the public page.') |
66 |
66 |
67 #: A property containing which mentor has been assigned to this project. |
67 #: A property containing which mentor has been assigned to this project. |
68 #: A project must have a mentor at all times |
68 #: A project must have a mentor at all times. |
69 mentor = db.ReferenceProperty(reference_class=soc.models.mentor.Mentor, |
69 mentor = db.ReferenceProperty(reference_class=soc.models.mentor.Mentor, |
70 required=True, |
70 required=True, |
71 collection_name='student_projects') |
71 collection_name='student_projects') |
72 |
72 |
73 #: A property containing a list of additional Mentors for this project |
73 #: A property containing a list of additional Mentors for this project |
90 #: This property can be used to determine how many evaluations someone has |
90 #: This property can be used to determine how many evaluations someone has |
91 #: passed. And is also used to ensure that a GradingRecord has been |
91 #: passed. And is also used to ensure that a GradingRecord has been |
92 #: processed. |
92 #: processed. |
93 passed_evaluations = db.ListProperty(item_type=db.Key, default=[]) |
93 passed_evaluations = db.ListProperty(item_type=db.Key, default=[]) |
94 |
94 |
|
95 #: List of all processed GradingRecords which state a fail for this project. |
|
96 #: This is a ListProperty to ensure that the system keeps functioning when |
|
97 #: manual changes in GradingRecords occur. |
|
98 failed_evaluations = db.ListProperty(item_type=db.Key, default=[]) |
|
99 |
95 #: Student which this project is from |
100 #: Student which this project is from |
96 student = db.ReferenceProperty( |
101 student = db.ReferenceProperty( |
97 reference_class=soc.models.student.Student, |
102 reference_class=soc.models.student.Student, |
98 required=True, collection_name='student_projects') |
103 required=True, collection_name='student_projects') |
99 |
104 |