listener/app_engine/notifications/listeners.py
def default_notification(instance, **kw):
    """ Given an error see if we need to send a notification """
    log("Firing signal: default_notification")

    users = approved_users()
    filtered = []
    for user in users:
        profile = get_profile(user)
        if profile.notification and instance.priority <= profile.notification:
            filtered.append(user)
    
    if not filtered:
        return
    
    notification = Notification()
    notification.type = "Error"
    notification.type_key = str(instance.key())
    notification.user = [ str(u.key()) for u in filtered ]
    notification.save()
 Given an error see if we need to send a notification 
Given an error see if we need to send a notification
Given an error see if we need to send a notification
def default_notification(instance, **kw):
    log("Firing signal: default_notification")
    users = approved_users()
    filtered = []
    for user in users:
        profile = get_profile(user)
        if profile.notification and instance.priority <= profile.notification:
            filtered.append(user)
    if not filtered:
        return
    notification = Notification()
    notification.type = "Error"
    notification.type_key = str(instance.key())
    notification.user = [ str(u.key()) for u in filtered ]
    notification.save()
def default_notification ( instance , ** kw ) : log ( "Firing signal: default_notification" ) users = approved_users ( ) filtered = [ ] for user in users : profile = get_profile ( user ) if profile . notification and instance . priority <= profile . notification : filtered . append ( user ) if not filtered : return notification = Notification ( ) notification . type = "Error" notification . type_key = str ( instance . key ( ) ) notification . user = [ str ( u . key ( ) ) for u in filtered ] notification . save ( )
Given an error see if we need to send a notification
Given an error see if we need to send a notification
""" Given an error see if we need to send a notification """
instance