Revision 19eb3ee6 snf-astakos-app/astakos/im/project_notif.py

b/snf-astakos-app/astakos/im/project_notif.py
37 37
    except NotificationError, e:
38 38
        logger.error(e.message)
39 39

  
40
def application_deny_notify(application):
41
    try:
42
        notification = build_notification(
43
            SENDER,
44
            [application.owner.email],
45
            _(settings.PROJECT_DENIED_SUBJECT) % application.__dict__,
46
            template='im/projects/project_denial_notification.txt',
47
            dictionary={'object':application})
48
        notification.send()
49
    except NotificationError, e:
50
        logger.error(e.message)
51

  
40 52
def application_approve_notify(application):
41 53
    try:
42 54
        notification = build_notification(

Also available in: Unified diff