Django

Code

Changeset 6883

Show
Ignore:
Timestamp:
12/04/07 00:52:13 (10 months ago)
Author:
adrian
Message:

Changed loaddata to display 'No fixtures found' and 'Loading XXX fixtures' only if verbosity level is greater than 2. It's not necessary to display those messages all of the time, and they're confusing to new users.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/commands/loaddata.py

    r6075 r6883  
    5959                    formats = [] 
    6060 
    61             if verbosity > 0
     61            if verbosity > 2
    6262                if formats: 
    6363                    print "Loading '%s' fixtures..." % fixture_name 
     
    107107                            fixture.close() 
    108108                    except: 
    109                         if verbosity > 1
     109                        if verbosity > 2
    110110                            print "No %s fixture '%s' in %s." % \ 
    111111                                (format, fixture_name, humanize(fixture_dir)) 
     
    123123 
    124124        if count[0] == 0: 
    125             if verbosity > 0
     125            if verbosity > 2
    126126                print "No fixtures found." 
    127127        else: