~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2009-07-29 11:26:28 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: james.westby@ubuntu.com-20090729112628-9qrzwnl9x32jxhbg
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.core.management.base import AppCommand
 
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(AppCommand):
 
9
    help = 'Test Application-based commands'
 
10
    requires_model_validation = False
 
11
    args = '[appname ...]'
 
12
 
 
13
    def handle_app(self, app, **options):
 
14
        print 'EXECUTE:AppCommand app=%s, options=%s' % (app, sorted(options.items()))
 
15