app/soc/models/program.py
changeset 771 0b1beae179f5
parent 769 a0ee643fe832
child 849 c193ac0ef593
equal deleted inserted replaced
770:eb2e69312953 771:0b1beae179f5
    12 # distributed under the License is distributed on an "AS IS" BASIS,
    12 # distributed under the License is distributed on an "AS IS" BASIS,
    13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14 # See the License for the specific language governing permissions and
    14 # See the License for the specific language governing permissions and
    15 # limitations under the License.
    15 # limitations under the License.
    16 
    16 
    17 """This module contains the Program Model."""
    17 """This module contains the Program Model.
       
    18 """
    18 
    19 
    19 __authors__ = [
    20 __authors__ = [
    20   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    21   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    21 ]
    22 ]
    22 
    23 
    60   description.example_text = ugettext_lazy('This is the program for GSoC 2009')
    61   description.example_text = ugettext_lazy('This is the program for GSoC 2009')
    61   
    62   
    62   #: Required field storing the type of workflow this program has
    63   #: Required field storing the type of workflow this program has
    63   workflow = db.StringProperty(required=True,
    64   workflow = db.StringProperty(required=True,
    64       choices=['gsoc', 'ghop'],
    65       choices=['gsoc', 'ghop'],
    65       verbose_name= ugettext_lazy('Type of workflow'))
    66       verbose_name= ugettext_lazy('Workflow type'))
    66   workflow.example_text = ugettext_lazy('Project-based for GSoC type workflow, ' 
    67   workflow.example_text = ugettext_lazy('Project-based for GSoC workflow type, ' 
    67       'task-based for GHOP type workflow')
    68       'task-based for GHOP workflow type')
    68 
    69 
    69   #: Required 1:1 relationship indicating the Program the Timeline
    70   #: Required 1:1 relationship indicating the Program the Timeline
    70   #: belongs to.
    71   #: belongs to.
    71   timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline,
    72   timeline = db.ReferenceProperty(reference_class=soc.models.timeline.Timeline,
    72                                  required=True, collection_name="program",
    73                                  required=True, collection_name="program",