Revision db99f198 snf-astakos-app/astakos/im/management/commands/project-update.py

b/snf-astakos-app/astakos/im/management/commands/project-update.py
41 41
from astakos.im.models import (
42 42
    ProjectApplication, Project)
43 43

  
44
from astakos.im.functions import terminate, suspend
44
from astakos.im.functions import terminate, suspend, resume
45 45

  
46 46
@transaction.commit_manually
47 47
class Command(BaseCommand):
......
54 54
                    dest='terminate',
55 55
                    default=False,
56 56
                    help="Terminate group"),
57
        make_option('--resume',
58
                    action='store_true',
59
                    dest='resume',
60
                    default=False,
61
                    help="Resume group"),
57 62
        make_option('--suspend',
58 63
                    action='store_true',
59 64
                    dest='suspend',
......
73 78
            try:
74 79
                if options['terminate']:
75 80
                    terminate(id)
81
                elif options['resume']:
82
                    resume(id)
76 83
                elif options['suspend']:
77 84
                    suspend(id)
78 85
            except BaseException, e:

Also available in: Unified diff