app/soc/logic/models/mentor.py
changeset 1955 06ed84dbb1ed
parent 1307 091a21cf3627
child 1972 5f1e3b5262cb
equal deleted inserted replaced
1954:7aef36e912bb 1955:06ed84dbb1ed
    32 class Logic(role.Logic):
    32 class Logic(role.Logic):
    33   """Logic methods for the Mentor model.
    33   """Logic methods for the Mentor model.
    34   """
    34   """
    35 
    35 
    36   def __init__(self, model=soc.models.mentor.Mentor,
    36   def __init__(self, model=soc.models.mentor.Mentor,
    37                base_model=soc.models.role.Role, scope_logic=org_logic):
    37                base_model=soc.models.role.Role, scope_logic=org_logic,
       
    38                disallow_last_resign=False):
    38     """Defines the name, key_name and model for this entity.
    39     """Defines the name, key_name and model for this entity.
    39     """
    40     """
    40 
    41 
    41     super(Logic, self).__init__(model=model, base_model=base_model,
    42     super(Logic, self).__init__(model=model, base_model=base_model,
    42                                 scope_logic=scope_logic)
    43                                 scope_logic=scope_logic,
       
    44                                 disallow_last_resign=disallow_last_resign)
    43 
    45 
    44 
    46 
    45 logic = Logic()
    47 logic = Logic()