67 #: "template" for the Review, containing the Questions that are |
67 #: "template" for the Review, containing the Questions that are |
68 #: anwered by the Answers associated with the Review. The |
68 #: anwered by the Answers associated with the Review. The |
69 #: back-reference in the Survey model is a Query named 'reviews' |
69 #: back-reference in the Survey model is a Query named 'reviews' |
70 #: which represents all of the Reviews that contains Answers to the |
70 #: which represents all of the Reviews that contains Answers to the |
71 #: Questions in that particular Survey. |
71 #: Questions in that particular Survey. |
72 survey = db.ReferenceProperty(reference_class=models.survey.Survey, |
72 survey = db.ReferenceProperty(reference_class=soc.models.survey.Survey, |
73 required=True, collection_name="reviews") |
73 required=True, collection_name="reviews") |
74 |
74 |
75 #: A required many:1 relationship with a Work, where the Review |
75 #: A required many:1 relationship with a Work, where the Review |
76 #: answers are attached to the Work as a comment, evaluation, |
76 #: answers are attached to the Work as a comment, evaluation, |
77 #: review, report, acceptance, etc. Reviews are the mechanism by |
77 #: review, report, acceptance, etc. Reviews are the mechanism by |
78 #: which non-authors of the Work make annotations to it. The |
78 #: which non-authors of the Work make annotations to it. The |
79 #: back-reference in the Work model is a Query named 'reviews' |
79 #: back-reference in the Work model is a Query named 'reviews' |
80 #: which represents all of the annotations attached to that |
80 #: which represents all of the annotations attached to that |
81 #: particular work. |
81 #: particular work. |
82 reviewed = db.ReferenceProperty(reference_class=models.work.Work, |
82 reviewed = db.ReferenceProperty(reference_class=soc.models.work.Work, |
83 required=True, collection_name="reviews") |
83 required=True, collection_name="reviews") |
84 |
84 |
85 #: A required many:1 relationship with a Reviewer entity indicating |
85 #: A required many:1 relationship with a Reviewer entity indicating |
86 #: the "author" of the actual answers for a specific Review |
86 #: the "author" of the actual answers for a specific Review |
87 #: instance. The back-reference in the Reviewer model is a Query |
87 #: instance. The back-reference in the Reviewer model is a Query |
88 #: named 'reviews' which represents all of the Reviews by that |
88 #: named 'reviews' which represents all of the Reviews by that |
89 #: particular Reviewer. |
89 #: particular Reviewer. |
90 reviewer = db.ReferenceProperty(reference_class=models.reviewer.Reviewer, |
90 reviewer = db.ReferenceProperty(reference_class=soc.models.reviewer.Reviewer, |
91 required=True, collection_name="reviews") |
91 required=True, collection_name="reviews") |
92 |
92 |