PageRenderTime 8183ms CodeModel.GetById 57ms RepoModel.GetById 3ms app.codeStats 1ms

/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
Possible License(s): BSD-3-Clause
  1. from django.core.management.base import LabelCommand
  2. class Command(LabelCommand):
  3. help = "Test Label-based commands"
  4. requires_model_validation = False
  5. args = '<label>'
  6. def handle_label(self, label, **options):
  7. print 'EXECUTE:LabelCommand label=%s, options=%s' % (label, sorted(options.items()))