Revision 0514bcc7 snf-astakos-app/astakos/im/functions.py

b/snf-astakos-app/astakos/im/functions.py
66 66
from astakos.im.notifications import build_notification, NotificationError
67 67
from astakos.im.models import (
68 68
    AstakosUser, ProjectMembership, ProjectApplication, Project,
69
    trigger_sync, PendingMembershipError)
69
    trigger_sync, PendingMembershipError, get_resource_names)
70 70
from astakos.im.models import submit_application as models_submit_application
71 71
from astakos.im.project_notif import (
72 72
    membership_change_notify,
73 73
    application_submit_notify, application_approve_notify,
74 74
    application_deny_notify,
75 75
    project_termination_notify, project_suspension_notify)
76
from astakos.im.endpoints.qh import qh_register_user
76
from astakos.im.endpoints.qh import qh_register_user, qh_get_quota
77 77

  
78 78
import astakos.im.messages as astakos_messages
79 79

  
......
377 377
        super(SendNotificationError, self).__init__()
378 378

  
379 379

  
380
def get_quota(user):
381
    resources = get_resource_names()
382
    return qh_get_quota(user, resources)
383

  
384

  
380 385
### PROJECT VIEWS ###
381 386

  
382 387
AUTO_ACCEPT_POLICY = 1

Also available in: Unified diff