app/soc/models/proposal.py
changeset 181 fdd29818a954
parent 129 d9543d181c37
child 206 832335761384
equal deleted inserted replaced
180:a1c6123f9d06 181:fdd29818a954
    22 ]
    22 ]
    23 
    23 
    24 from google.appengine.ext import db
    24 from google.appengine.ext import db
    25 
    25 
    26 from soc import models
    26 from soc import models
       
    27 from soc.models import base
    27 import soc.models.work
    28 import soc.models.work
    28 
    29 
    29 class Proposal(db.Model):
    30 class Proposal(base.ModelWithFieldAttributes):
    30   """Model of a Proposal, which is a specific form of a Work.
    31   """Model of a Proposal, which is a specific form of a Work.
    31 
    32 
    32   A Proposal entity participates in the following relationships implemented 
    33   A Proposal entity participates in the following relationships implemented 
    33   as a db.ReferenceProperty elsewhere in another db.Model:
    34   as a db.ReferenceProperty elsewhere in another db.Model:
    34 
    35 
    45 	#: work.authors:  the Authors of the Work referred to by this relation
    46 	#: work.authors:  the Authors of the Work referred to by this relation
    46 	#: are the authors of the Proposal.
    47 	#: are the authors of the Proposal.
    47 	#: work.title:  the title of the Proposal.
    48 	#: work.title:  the title of the Proposal.
    48 	#: work.abstract:  publicly displayed as a proposal abstract or summary.
    49 	#: work.abstract:  publicly displayed as a proposal abstract or summary.
    49 	#: work.reviews:  reviews of the Proposal by Reviewers.
    50 	#: work.reviews:  reviews of the Proposal by Reviewers.
    50   work = db.ReferenceProperty(reference_class=soc.models.work.Work, required=True,
    51   work = db.ReferenceProperty(reference_class=models.work.Work, required=True,
    51                               collection_name="proposal")
    52                               collection_name="proposal")
    52 
    53 
    53   #: Required db.TextProperty describing the proposal in detail.
    54   #: Required db.TextProperty describing the proposal in detail.
    54   #: Unlike the work.abstract, which is considered "public" information,
    55   #: Unlike the work.abstract, which is considered "public" information,
    55 	#: the contents of 'details' is only to be displayed to Persons in roles
    56 	#: the contents of 'details' is only to be displayed to Persons in roles