app/soc/models/club.py
author Lennard de Rijk <ljvderijk@gmail.com>
Sat, 21 Feb 2009 10:53:52 +0000
changeset 1421 7602d41f0ed8
parent 1308 35b75ffcbb37
child 1857 febcaeb4234b
permissions -rw-r--r--
Made some changes to StudentProposal. Abstract is now required and content field has been added. New is now the default status. This will be used to easily distinguish between applications that didn't have their initial ranking/scoring yet. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
172
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     1
#!/usr/bin/python2.5
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     2
#
1308
35b75ffcbb37 Partially reverted "Update the copyright notice for 2009."
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1307
diff changeset
     3
# Copyright 2008 the Melange authors.
172
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     4
#
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     5
# Licensed under the Apache License, Version 2.0 (the "License");
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     6
# you may not use this file except in compliance with the License.
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     7
# You may obtain a copy of the License at
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     8
#
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     9
#   http://www.apache.org/licenses/LICENSE-2.0
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    10
#
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    11
# Unless required by applicable law or agreed to in writing, software
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    12
# distributed under the License is distributed on an "AS IS" BASIS,
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    14
# See the License for the specific language governing permissions and
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    15
# limitations under the License.
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    16
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    17
"""This module contains the Club Model."""
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    18
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    19
__authors__ = [
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    20
  '"Todd Larsen" <tlarsen@google.com>',
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    21
]
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    22
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    23
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    24
import soc.models.group
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    25
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    26
208
e076aee6e90f Take advantage of the Model inheritance provided by polymodel.PolyModel to
Todd Larsen <tlarsen@google.com>
parents: 181
diff changeset
    27
class Club(soc.models.group.Group):
172
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    28
  """Details specific to a Club.
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    29
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    30
  A Club is a generic type of Group that gathers Members into a community.
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    31
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    32
  A Club entity participates in the following relationships implemented
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    33
  as a db.ReferenceProperty elsewhere in another db.Model:
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    34
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    35
   members)  a 1:many relationship of Members belonging to a Club.  This
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    36
     relation is implemented as the 'members' back-reference Query of the
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    37
     Member model 'club' reference.
594e07154872 First pass (from some old code notes) of a Club Model (a form of Group).
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    38
  """
745
ed3b545a9c14 Remove not used TYPE_NAME, TYPE_NAME_SHORT and TYPE_NAME_PLURAL consts in all Group models.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 385
diff changeset
    39
  
ed3b545a9c14 Remove not used TYPE_NAME, TYPE_NAME_SHORT and TYPE_NAME_PLURAL consts in all Group models.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 385
diff changeset
    40
  pass