PageRenderTime 29ms CodeModel.GetById 26ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/gis/management/base.py

https://code.google.com/p/mango-py/
Python | 15 lines | 9 code | 3 blank | 3 comment | 2 complexity | 31a7cf05b44553cfdfa8cb0b8982d117 MD5 | raw file
 1from django.core.management.base import BaseCommand, CommandError
 2
 3class ArgsCommand(BaseCommand):
 4    """
 5    Command class for commands that take multiple arguments.
 6    """
 7    args = '<arg arg ...>'
 8
 9    def handle(self, *args, **options):
10        if not args:
11            raise CommandError('Must provide the following arguments: %s' % self.args)
12        return self.handle_args(*args, **options)
13
14    def handle_args(self, *args, **options):
15        raise NotImplementedError()