Fix user_self calling editGet with a wrong parameter
[Melange.git] / app / soc / models / reviewer.py
blob1bee27500aad4336c94b98fff00019d3d7aadf92
1 #!/usr/bin/python2.5
3 # Copyright 2008 the Melange authors.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 """This module contains the Reviewer Model."""
19 __authors__ = [
20 '"Todd Larsen" <tlarsen@google.com>',
24 from google.appengine.ext import db
26 import soc.models.organization
27 import soc.models.role
30 class Reviewer(soc.models.role.Role):
31 """Reviewer details for a specific Program.
33 A Reviewer entity participates in the following relationships implemented
34 as a db.ReferenceProperty elsewhere in another db.Model:
36 reviews) an optional 1:many relationship of Reviews written by the
37 Reviewer. This relation is implemented as the 'reviews'
38 back-reference Query of the Review model 'reviewer' reference.
39 """
41 #: A many:1 relationship associating Reviewers with specific Organization
42 #: details and capabilities. The back-reference in the Organization model
43 #: is a Query named 'reviewers'.
44 org = db.ReferenceProperty(
45 reference_class=soc.models.organization.Organization,
46 required=True, collection_name='reviewers')