~ubuntu-branches/debian/squeeze/python-django/squeeze

« back to all changes in this revision

Viewing changes to tests/regressiontests/admin_scripts/management/commands/label_command.py

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb, Chris Lamb, David Spreen, Sandro Tosi
  • Date: 2008-11-19 21:31:00 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081119213100-gp0lqhxl1qxa6dgl
Tags: 1.0.2-1
[ Chris Lamb ]
* New upstream bugfix release. Closes: #505783
* Add myself to Uploaders with ACK from Brett.

[ David Spreen ]
* Remove python-pysqlite2 from Recommends because Python 2.5 includes
  sqlite library used by Django. Closes: 497886

[ Sandro Tosi ]
* debian/control
  - switch Vcs-Browser field to viewsvn

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from django.core.management.base import LabelCommand
2
 
# Python 2.3 doesn't have sorted()
3
 
try:
4
 
    sorted
5
 
except NameError:
6
 
    from django.utils.itercompat import sorted
7
 
 
8
 
class Command(LabelCommand):
9
 
    help = "Test Label-based commands"
10
 
    requires_model_validation = False
11
 
    args = '<label>'
12
 
 
13
 
    def handle_label(self, label, **options):
14
 
        print 'EXECUTE:LabelCommand label=%s, options=%s' % (label, sorted(options.items()))