Revision 5ce3ce4f snf-astakos-app/astakos/im/management/commands/resource_list.py
b/snf-astakos-app/astakos/im/management/commands/resource_list.py | ||
---|---|---|
37 | 37 |
|
38 | 38 |
from astakos.im.models import Resource |
39 | 39 |
|
40 |
|
|
40 | 41 |
class Command(BaseCommand): |
41 | 42 |
help = "List resources" |
42 | 43 |
|
43 | 44 |
option_list = BaseCommand.option_list + ( |
44 | 45 |
make_option('-c', |
45 |
action='store_true', |
|
46 |
dest='csv', |
|
47 |
default=False, |
|
48 |
help="Use pipes to separate values"), |
|
46 |
action='store_true',
|
|
47 |
dest='csv',
|
|
48 |
default=False,
|
|
49 |
help="Use pipes to separate values"),
|
|
49 | 50 |
) |
50 | 51 |
|
51 | 52 |
def handle(self, *args, **options): |
Also available in: Unified diff