app/soc/logic/models/request.py
changeset 928 df051fc9d7a1
parent 818 ddd102e82107
child 1085 0afbdd0905ef
equal deleted inserted replaced
927:f790f77ba6b7 928:df051fc9d7a1
    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.state == '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.state == 'new':
    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
    72       pass
    72       pass
    73 
    73 
    74 
    74