app/soc/logic/models/request.py
changeset 1085 0afbdd0905ef
parent 928 df051fc9d7a1
child 1106 e14b0995cf29
equal deleted inserted replaced
1084:9c4221f7b747 1085:0afbdd0905ef
    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.state == 'group_accepted':
    66     if entity.status == 'group_accepted':
    67       # this is an invite
    67       # this is an invite
    68       notifications.sendInviteNotification(entity)
    68       notifications.sendInviteNotification(entity)
    69     elif entity.state == 'new':
    69     elif entity.status == '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