Revision a6d167c1 snf-astakos-app/astakos/im/management/commands/service-import.py
b/snf-astakos-app/astakos/im/management/commands/service-import.py | ||
---|---|---|
34 | 34 |
from optparse import make_option |
35 | 35 |
|
36 | 36 |
from django.db import transaction |
37 |
from django.core.management.base import BaseCommand, CommandError
|
|
37 |
from snf_django.management.commands import SynnefoCommand, CommandError
|
|
38 | 38 |
from django.utils import simplejson as json |
39 | 39 |
|
40 | 40 |
from astakos.im.register import add_service, add_resource, RegisterException |
... | ... | |
42 | 42 |
from ._common import read_from_file |
43 | 43 |
|
44 | 44 |
|
45 |
class Command(BaseCommand):
|
|
45 |
class Command(SynnefoCommand):
|
|
46 | 46 |
help = "Register services" |
47 | 47 |
|
48 |
option_list = BaseCommand.option_list + (
|
|
48 |
option_list = SynnefoCommand.option_list + (
|
|
49 | 49 |
make_option('--json', |
50 | 50 |
dest='json', |
51 | 51 |
metavar='<json.file>', |
Also available in: Unified diff