author | Lennard de Rijk <ljvderijk@gmail.com> |
Fri, 03 Jul 2009 14:36:16 +0200 | |
changeset 2503 | c14a754b0644 |
parent 771 | 0b1beae179f5 |
permissions | -rw-r--r-- |
764
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
1 |
#!/usr/bin/python2.5 |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
2 |
# |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
3 |
# Copyright 2008 the Melange authors. |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
4 |
# |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
5 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
6 |
# you may not use this file except in compliance with the License. |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
7 |
# You may obtain a copy of the License at |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
8 |
# |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
9 |
# http://www.apache.org/licenses/LICENSE-2.0 |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
10 |
# |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
11 |
# Unless required by applicable law or agreed to in writing, software |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
12 |
# distributed under the License is distributed on an "AS IS" BASIS, |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
13 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
14 |
# See the License for the specific language governing permissions and |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
15 |
# limitations under the License. |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
16 |
|
771
0b1beae179f5
Typo and style fixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
764
diff
changeset
|
17 |
"""This module contains the Timeline Model. |
0b1beae179f5
Typo and style fixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
764
diff
changeset
|
18 |
""" |
764
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
19 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
20 |
__authors__ = [ |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
21 |
'"Sverre Rabbelier" <sverre@rabbelier.nl>', |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
22 |
] |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
23 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
24 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
25 |
from google.appengine.ext import db |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
26 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
27 |
from django.utils.translation import ugettext_lazy |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
28 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
29 |
import soc.models.timeline |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
30 |
|
771
0b1beae179f5
Typo and style fixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
764
diff
changeset
|
31 |
|
764
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
32 |
class Timeline(soc.models.timeline.Timeline): |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
33 |
"""The GSoC Timeline Model. |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
34 |
""" |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
35 |
|
771
0b1beae179f5
Typo and style fixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
764
diff
changeset
|
36 |
accepted_organization_announced_deadline = db.DateTimeProperty( |
0b1beae179f5
Typo and style fixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
764
diff
changeset
|
37 |
verbose_name=ugettext_lazy('Accepted Organizations Announced Deadline')) |
764
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
38 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
39 |
application_review_deadline = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
40 |
verbose_name=ugettext_lazy('Application Review Deadline')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
41 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
42 |
student_application_matched_deadline = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
43 |
verbose_name=ugettext_lazy('Student Application Matched Deadline')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
44 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
45 |
accepted_students_announced_deadline = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
46 |
verbose_name=ugettext_lazy('Accepted Students Announced Deadline')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
47 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
48 |
bonding_start = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
49 |
verbose_name=ugettext_lazy('Community Bonding Period Start date')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
50 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
51 |
bonding_end = db.DateTimeProperty( |
771
0b1beae179f5
Typo and style fixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
764
diff
changeset
|
52 |
verbose_name=ugettext_lazy('Community Bonding Period End date')) |
764
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
53 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
54 |
coding_start = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
55 |
verbose_name=ugettext_lazy('Coding Start date')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
56 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
57 |
coding_end = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
58 |
verbose_name=ugettext_lazy('Coding End date')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
59 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
60 |
suggested_coding_deadline = db.DateTimeProperty( |
771
0b1beae179f5
Typo and style fixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
764
diff
changeset
|
61 |
verbose_name=ugettext_lazy('Suggested Coding Deadline')) |
764
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
62 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
63 |
midterm_survey_start = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
64 |
verbose_name=ugettext_lazy('Midterm Survey Start date')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
65 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
66 |
midterm_survey_end = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
67 |
verbose_name=ugettext_lazy('Midterm Survey End date')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
68 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
69 |
final_survey_start = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
70 |
verbose_name=ugettext_lazy('Final Survey Start date')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
71 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
72 |
final_survey_end = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
73 |
verbose_name=ugettext_lazy('Final Survey End date')) |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
74 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
75 |
mentor_summit_start = db.DateTimeProperty( |
771
0b1beae179f5
Typo and style fixes.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
764
diff
changeset
|
76 |
verbose_name=ugettext_lazy('Mentor Summit Start date')) |
764
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
77 |
|
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
78 |
mentor_summit_end = db.DateTimeProperty( |
e0293fa7b342
Added a basic Timeline model
Sverre Rabbelier <srabbelier@gmail.com>
parents:
diff
changeset
|
79 |
verbose_name=ugettext_lazy('Mentor Summit End date')) |