Example #1
0
    def handle_label(self, label, **options):
        options = sanitize_command_options(options)

        if not hasattr(commands, 'sync_%s' % label):
            raise CommandError('"%s" is not a valid command.' % label)

        getattr(commands, 'sync_%s' % label)(**options)
Example #2
0
    def handle_label(self, label, **options):
        options = sanitize_command_options(options)

        if not hasattr(commands, 'sync_%s' % label):
            raise CommandError('"%s" is not a valid command.' % label)

        getattr(commands, 'sync_%s' % label)(**options)
Example #3
0
 def handle(self, **options):
     """
     Command handler.
     """
     reset_awards(**sanitize_command_options(options))
 def handle(self, *args, **options):
     options = sanitize_command_options(options)
     reset_awards(**options)