app/soc/logic/models/role.py
changeset 916 f18c0a56da8b
parent 715 51703b18ef2e
child 978 e05b09b53486
equal deleted inserted replaced
915:27c656c01591 916:f18c0a56da8b
    21   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    21   '"Sverre Rabbelier" <sverre@rabbelier.nl>',
    22   '"Lennard de Rijk" <ljvderijk@gmail.com>',
    22   '"Lennard de Rijk" <ljvderijk@gmail.com>',
    23   ]
    23   ]
    24 
    24 
    25 
    25 
    26 from soc.logic.helper import request
       
    27 from soc.logic.models import base
    26 from soc.logic.models import base
    28 
    27 
    29 import soc.models.role
    28 import soc.models.role
    30 
    29 
    31 
    30 
    38     """Defines the name, key_name and model for this entity.
    37     """Defines the name, key_name and model for this entity.
    39     """
    38     """
    40 
    39 
    41     super(Logic, self).__init__(model, base_model=base_model,
    40     super(Logic, self).__init__(model, base_model=base_model,
    42                                 scope_logic=scope_logic)
    41                                 scope_logic=scope_logic)
    43     
       
    44   def _onCreate(self, entity):
       
    45     """Will remove any outstanding requests for the new role entity.
       
    46     """
       
    47   
       
    48     request.removeRequestForRole(entity)
       
    49 
    42 
    50 
    43 
    51 logic = Logic()
    44 logic = Logic()