Revision 3b99d2d6 snf-astakos-app/astakos/im/management/commands/service-add.py

b/snf-astakos-app/astakos/im/management/commands/service-add.py
34 34
from django.core.management.base import BaseCommand, CommandError
35 35

  
36 36
from astakos.im.models import Service
37
from astakos.im.api.callpoint import AstakosDjangoDBCallpoint
37
from astakos.im.api.callpoint import AstakosCallpoint
38 38

  
39 39
class Command(BaseCommand):
40 40
    args = "<name> <url> [<icon>]"
......
48 48
        if len(args) == 3:
49 49
            s['icon'] = args[2]
50 50
        try:
51
            c = AstakosDjangoDBCallpoint()
51
            c = AstakosCallpoint()
52 52
            c.add_services((s,))
53 53
        except Exception, e:
54 54
            raise CommandError(e)

Also available in: Unified diff