PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/regressiontests/admin_scripts/management/commands/label_command.py

https://code.google.com/p/mango-py/
Python | 9 lines | 7 code | 2 blank | 0 comment | 0 complexity | 6f270178b5c8d4d1f5843f3cfcbe1e76 MD5 | raw file
1from django.core.management.base import LabelCommand
2
3class Command(LabelCommand):
4    help = "Test Label-based commands"
5    requires_model_validation = False
6    args = '<label>'
7
8    def handle_label(self, label, **options):
9        print 'EXECUTE:LabelCommand label=%s, options=%s' % (label, sorted(options.items()))