Fixed `ogrinspect` management commannd -- no longer try to pass the global `verbosity` option where it shouldn't go. Refs r9110.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2008-10-25 19:16:45 +00:00
parent 03070a9955
commit 3784c7fac6
1 changed files with 3 additions and 0 deletions

View File

@ -97,6 +97,9 @@ class Command(ArgsCommand):
# Whether the user wants to generate the LayerMapping dictionary as well. # Whether the user wants to generate the LayerMapping dictionary as well.
show_mapping = options.pop('mapping', False) show_mapping = options.pop('mapping', False)
# Popping the verbosity global option, as it's not accepted by `_ogrinspect`.
verbosity = options.pop('verbosity', False)
# Returning the output of ogrinspect with the given arguments # Returning the output of ogrinspect with the given arguments
# and options. # and options.
from django.contrib.gis.utils.ogrinspect import _ogrinspect, mapping from django.contrib.gis.utils.ogrinspect import _ogrinspect, mapping