Several stylefixes due to received reviews.
--- a/app/soc/logic/models/survey_record.py Fri Jul 03 18:39:30 2009 +0200
+++ b/app/soc/logic/models/survey_record.py Fri Jul 03 19:15:09 2009 +0200
@@ -41,12 +41,12 @@
scope_logic=scope_logic, id_based=True)
def updateOrCreateFromFields(self, entity, properties, clear_dynamic=False):
- """ Create a new SurveyRecord, or update an existing one.
+ """Create a new SurveyRecord, or update an existing one.
params:
- entity = existing SurveyRecord, if one exists
- properties = the properties to be set
- clear_dynamic = iff True removes all dynamic properties before updating
+ entity: existing SurveyRecord, if one exists
+ properties: the properties to be set
+ clear_dynamic: iff True removes all dynamic properties before updating
"""
if entity:
--- a/app/soc/models/survey_record.py Fri Jul 03 18:39:30 2009 +0200
+++ b/app/soc/models/survey_record.py Fri Jul 03 19:15:09 2009 +0200
@@ -40,8 +40,7 @@
"""
#: The survey for which this entity is a record.
- survey = db.ReferenceProperty(Survey,
- collection_name="survey_records")
+ survey = db.ReferenceProperty(Survey, collection_name="survey_records")
#: Date when this record was created.
created = db.DateTimeProperty(auto_now_add=True)
@@ -63,6 +62,8 @@
class SurveyRecord(BaseSurveyRecord):
+ """Record produced by taking a Survey.
+ """
#: Reference to the User entity which took this survey.
user = db.ReferenceProperty(reference_class=soc.models.user.User,
--- a/app/soc/models/survey_record_group.py Fri Jul 03 18:39:30 2009 +0200
+++ b/app/soc/models/survey_record_group.py Fri Jul 03 19:15:09 2009 +0200
@@ -51,12 +51,14 @@
# it possible to setup which surveys should be grouped.
#: Mentor SurveyRecord for this evaluation.
- mentor_record = db.ReferenceProperty(GradingProjectSurveyRecord, required=False,
- collection_name='mentor_record_groups')
+ mentor_record = db.ReferenceProperty(GradingProjectSurveyRecord,
+ required=False,
+ collection_name='mentor_record_groups')
#: Student SurveyRecord for this evaluation.
- student_record = db.ReferenceProperty(ProjectSurveyRecord, required=False,
- collection_name='student_record_groups')
+ student_record = db.ReferenceProperty(
+ ProjectSurveyRecord, required=False,
+ collection_name='student_record_groups')
#: Project for this evaluation.
project = db.ReferenceProperty(soc.models.student_project.StudentProject,