Revision b55b9692 snf-astakos-app/astakos/im/management/commands/service-export-astakos.py
b/snf-astakos-app/astakos/im/management/commands/service-export-astakos.py | ||
---|---|---|
35 | 35 |
from django.core.management.base import NoArgsCommand |
36 | 36 |
# import from settings, after any post-processing |
37 | 37 |
from astakos.im.settings import astakos_services |
38 |
from synnefo.lib.services import filter_public |
|
38 | 39 |
|
39 | 40 |
|
40 | 41 |
class Command(NoArgsCommand): |
41 | 42 |
help = "Export Astakos services in JSON format." |
42 | 43 |
|
43 | 44 |
def handle(self, *args, **options): |
44 |
output = json.dumps(astakos_services, indent=4)
|
|
45 |
output = json.dumps(filter_public(astakos_services), indent=4)
|
|
45 | 46 |
self.stdout.write(output + "\n") |
Also available in: Unified diff