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
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 Organization Model.
21 '"Pawel Solyga" <pawel.solyga@gmail.com>',
25 from google
.appengine
.ext
import db
27 from django
.utils
.translation
import ugettext
29 import soc
.models
.group
32 class Organization(soc
.models
.group
.Group
):
33 """Organization details.
36 #: Optional development mailing list.
37 dev_mailing_list
= db
.StringProperty(required
=False,
38 verbose_name
=ugettext('Development Mailing List'))
39 dev_mailing_list
.help_text
= ugettext(
40 'Mailing list email address, URL to sign-up page, etc.')
42 contrib_template
= db
.TextProperty(required
=False, verbose_name
=ugettext(
43 'Application template'))
44 contrib_template
.help_text
= ugettext(
45 'This template can be used by contributors, such as students'
46 ' and other non-member participants, when they apply to contribute'
47 ' to the organization.')
49 ideas
= db
.LinkProperty(required
=False, verbose_name
=ugettext('Ideas list'))
50 ideas
.help_text
= ugettext(
51 'The URL to the ideas list of your organization.')
52 ideas
.example_text
= ugettext('For instance a link to a Melange public '
53 'document or some other URL')
55 slots
= db
.IntegerProperty(required
=False, default
=0,
56 verbose_name
=ugettext('Slots allocated'))
57 slots
.help_text
= ugettext(
58 'The amount of slots allocated to this organization.')
60 slots_desired
= db
.IntegerProperty(required
=False, default
=0,
61 verbose_name
=ugettext('Slots desired'))
62 slots_desired
.help_text
= ugettext(
63 'The amount of slots desired by this organization.')
65 slots_calculated
= db
.IntegerProperty(required
=False, default
=0,
66 verbose_name
=ugettext('Slots calculated'))
67 slots_calculated
.help_text
= ugettext(
68 'The amount of slots calculated for this organization.')
70 nr_applications
= db
.IntegerProperty(required
=False, default
=0,
71 verbose_name
=ugettext('Amount of applications received'))
72 nr_applications
.help_text
= ugettext(
73 'The amount of applications received by this organization.')
75 nr_mentors
= db
.IntegerProperty(required
=False, default
=0,
76 verbose_name
=ugettext('Amount of mentors assigned'))
77 nr_mentors
.help_text
= ugettext(
78 'The amount of mentors assigned to a proposal by this organization.')