app/soc/models/club_admin.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 07 Feb 2009 20:37:28 +0000
changeset 1239 065e5bcf90f0
parent 954 446d053dfa6c
child 1307 091a21cf3627
permissions -rw-r--r--
Stylefixes in access.py and removal of self.deny calls The result of self.deny() is not very helpfull to the user, as such we should not use it if we can provide a more sensible message. Also made the document access checks use getForKeyFieldsOr404 to prevent an error page when the specified document doesn't exist. Patch by: Sverre Rabbelier

#!/usr/bin/python2.5
#
# Copyright 2008 the Melange authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""This module contains the Club Admin Model."""

__authors__ = [
  '"Sverre Rabbelier" <sverre@rabbelier.nl>',
]


import soc.models.role


class ClubAdmin(soc.models.role.Role):
  """Admin for a specific Club.
  """

  pass