Revision cb14cc6c snf-astakos-app/astakos/im/quotas.py

b/snf-astakos-app/astakos/im/quotas.py
163 163
    return SYSTEM
164 164

  
165 165

  
166
def users_quotas(users, initial=None):
166
def astakos_users_quotas(users, initial=None):
167 167
    if initial is None:
168 168
        quotas = initial_quotas(users)
169 169
    else:
......
209 209
    return quotas
210 210

  
211 211

  
212
def user_quotas(user):
213
    quotas = users_quotas([user])
212
def astakos_user_quotas(user):
213
    quotas = astakos_users_quotas([user])
214 214
    try:
215 215
        return quotas[user.uuid]
216 216
    except KeyError:
......
220 220
def list_user_quotas(users):
221 221
    qh_quotas, qh_limits = get_users_quotas_and_limits(users)
222 222
    astakos_initial = initial_quotas(users)
223
    astakos_quotas = users_quotas(users)
223
    astakos_quotas = astakos_users_quotas(users)
224 224

  
225 225
    diff_quotas = {}
226 226
    for holder, local in astakos_quotas.iteritems():
......
257 257

  
258 258
def qh_sync_users(user_ids):
259 259
    users = AstakosUser.forupdate.filter(id__in=user_ids).select_for_update()
260
    astakos_quotas = users_quotas(list(users))
260
    astakos_quotas = astakos_users_quotas(list(users))
261 261
    set_user_quota(astakos_quotas)
262 262

  
263 263

  

Also available in: Unified diff