app/soc/logic/models/request.py
changeset 818 ddd102e82107
parent 676 c6433532ddff
child 928 df051fc9d7a1
equal deleted inserted replaced
817:98996e11b604 818:ddd102e82107
    60     return ['scope_path', 'role', 'link_id']
    60     return ['scope_path', 'role', 'link_id']
    61   
    61   
    62   def _onCreate(self, entity):
    62   def _onCreate(self, entity):
    63     """Sends out a message notifying users about the new invite/request.
    63     """Sends out a message notifying users about the new invite/request.
    64     """
    64     """
    65     
    65 
    66     if entity.group_accepted:  
    66     if entity.group_accepted:
    67       # this is an invite
    67       # this is an invite
    68       notifications.sendInviteNotification(entity)
    68       notifications.sendInviteNotification(entity)
    69     elif entity.user_accepted:
    69     elif entity.user_accepted:
    70       # this is a request
    70       # this is a request
    71       # TODO(Lennard) Create a new request message
    71       # TODO(Lennard) Create a new request message