Revision 5a0f9d6c snf-astakos-app/astakos/im/management/commands/user-show.py
b/snf-astakos-app/astakos/im/management/commands/user-show.py | ||
---|---|---|
42 | 42 |
from snf_django.management.commands import SynnefoCommand |
43 | 43 |
from snf_django.management import utils |
44 | 44 |
|
45 |
from ._common import show_quotas, style_options, check_style |
|
45 |
from ._common import show_user_quotas, style_options, check_style
|
|
46 | 46 |
|
47 | 47 |
import uuid |
48 | 48 |
|
... | ... | |
128 | 128 |
check_style(unit_style) |
129 | 129 |
|
130 | 130 |
quotas, initial = list_user_quotas([user]) |
131 |
h_quotas = quotas[user.uuid] |
|
132 |
h_initial = initial[user.uuid] |
|
131 | 133 |
if quotas: |
132 | 134 |
self.stdout.write("\n") |
133 |
print_data, labels = show_quotas(quotas, initial,
|
|
134 |
style=unit_style) |
|
135 |
print_data, labels = show_user_quotas(h_quotas, h_initial,
|
|
136 |
style=unit_style)
|
|
135 | 137 |
utils.pprint_table(self.stdout, print_data, labels, |
136 | 138 |
options["output_format"], |
137 | 139 |
title="User Quota") |
Also available in: Unified diff