コード例 #1
0
ファイル: badgify_sync.py プロジェクト: bufke/django-badgify
    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)
コード例 #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)
コード例 #3
0
ファイル: badgify_reset.py プロジェクト: mmejias/badgeTest
 def handle(self, **options):
     """
     Command handler.
     """
     reset_awards(**sanitize_command_options(options))
コード例 #4
0
 def handle(self, *args, **options):
     options = sanitize_command_options(options)
     reset_awards(**options)