|
1 #!/usr/bin/python2.5 |
|
2 # |
|
3 # Copyright 2009 the Melange authors. |
|
4 # |
|
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 |
|
10 # |
|
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. |
|
16 |
|
17 """This module contains the GHOP specific Timeline Model. |
|
18 """ |
|
19 |
|
20 __authors__ = [ |
|
21 '"Madhusudan.C.S" <madhusudancs@gmail.com>', |
|
22 ] |
|
23 |
|
24 |
|
25 from google.appengine.ext import db |
|
26 |
|
27 from django.utils.translation import ugettext |
|
28 |
|
29 import soc.models.timeline |
|
30 |
|
31 |
|
32 class GHOPTimeline(soc.models.timeline.Timeline): |
|
33 """GHOP Timeline model extends the basic Timeline model. It implements |
|
34 the GHOP specific timeline entries. |
|
35 """ |
|
36 |
|
37 task_claim_deadline = db.DateTimeProperty( |
|
38 verbose_name=ugettext('Task Claim Deadline date')) |
|
39 task_claim_deadline.help_text = ugettext( |
|
40 'No tasks can be claimed after this date.' |
|
41 'Work on claimed tasks can continue.') |
|
42 |
|
43 stop_all_work = db.DateTimeProperty( |
|
44 verbose_name=ugettext('Work Submission Deadline date')) |
|
45 stop_all_work.help_text = ugettext( |
|
46 'All work must stop by this date.') |
|
47 |
|
48 winner_selection_start = db.DateTimeProperty( |
|
49 verbose_name=ugettext('Winner Selection Start date')) |
|
50 winner_selection_start.help_text = ugettext( |
|
51 'Organizations start choosing their winners.') |
|
52 |
|
53 winner_selection_end = db.DateTimeProperty( |
|
54 verbose_name=ugettext('Winner Selection End date')) |
|
55 winner_selection_end.help_text = ugettext( |
|
56 'Organizations must have completed choosing their winners.') |
|
57 |
|
58 winner_announcement = db.DateTimeProperty( |
|
59 verbose_name=ugettext('Winner Announcement date')) |
|
60 winner_announcement.help_text = ugettext( |
|
61 'All winners are announced.') |
|
62 |