app/soc/logic/models/club_admin.py
changeset 2664 06d4f4d06f64
parent 1955 06ed84dbb1ed
child 2673 cecb3a669527
equal deleted inserted replaced
2663:d270bd8b7417 2664:06d4f4d06f64
    34   """Logic methods for the Club Admin model.
    34   """Logic methods for the Club Admin model.
    35   """
    35   """
    36 
    36 
    37   def __init__(self, model=soc.models.club_admin.ClubAdmin,
    37   def __init__(self, model=soc.models.club_admin.ClubAdmin,
    38                base_model=soc.models.role.Role, scope_logic=club_logic,
    38                base_model=soc.models.role.Role, scope_logic=club_logic,
    39                disallow_last_resign=True):
    39                role_name='club_admin', disallow_last_resign=True):
    40     """Defines the name, key_name and model for this entity.
    40     """Defines the name, key_name and model for this entity.
    41     """
    41     """
    42 
    42 
    43     super(Logic, self).__init__(model=model, base_model=base_model,
    43     super(Logic, self).__init__(role_name=role_name, model=model,
    44                                 scope_logic=scope_logic,
    44                                 base_model=base_model, scope_logic=scope_logic,
    45                                 disallow_last_resign=disallow_last_resign)
    45                                 disallow_last_resign=disallow_last_resign)
    46 
    46 
    47   def _onCreate(self, entity):
    47   def _onCreate(self, entity):
    48     """Marks the Club for this Club Admin as active it's status is new.
    48     """Marks the Club for this Club Admin as active it's status is new.
    49     """
    49     """