app/soc/logic/models/notification.py
changeset 2708 db544114b158
parent 1556 c81109a8a1a1
equal deleted inserted replaced
2707:ffabb3576744 2708:db544114b158
    34 
    34 
    35 class Logic(base.Logic):
    35 class Logic(base.Logic):
    36   """Logic methods for the Notification model.
    36   """Logic methods for the Notification model.
    37   """
    37   """
    38 
    38 
    39   def __init__(self):
    39   def __init__(self, model=soc.models.notification.Notification,
       
    40                base_model=None, scope_logic=user_logic):
    40     """Defines the name, key_name and model for this entity.
    41     """Defines the name, key_name and model for this entity.
    41     """
    42     """
    42     super(Logic, self).__init__(model=soc.models.notification.Notification,
    43     super(Logic, self).__init__(model=model, base_model=base_model,
    43          base_model=None, scope_logic=user_logic)
    44                                 scope_logic=scope_logic)
    44 
    45 
    45   def _onCreate(self, entity):
    46   def _onCreate(self, entity):
    46     """Sends out a message if there is only one unread notification.
    47     """Sends out a message if there is only one unread notification.
    47     """
    48     """
    48 
    49