# HG changeset patch # User Lennard de Rijk # Date 1246641309 -7200 # Node ID a3513142ae016d7c6effda027c69b422ca5eae11 # Parent 53fabbd7c6f3011f8ab82b6451c6389919421266 Several stylefixes due to received reviews. diff -r 53fabbd7c6f3 -r a3513142ae01 app/soc/logic/models/survey_record.py --- 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: diff -r 53fabbd7c6f3 -r a3513142ae01 app/soc/models/survey_record.py --- 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, diff -r 53fabbd7c6f3 -r a3513142ae01 app/soc/models/survey_record_group.py --- 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,