Package madrona :: Package manipulators :: Package management :: Package commands :: Module create_manipulator_geom :: Class Command
[hide private]

Class Command

source code

                             object --+    
                                      |    
django.core.management.base.BaseCommand --+
                                          |
                                         Command

Instance Methods [hide private]
 
handle(self, shapefile, manipulator, *args, **options)
The actual logic of the command.
source code

Inherited from django.core.management.base.BaseCommand: __init__, create_parser, execute, get_version, print_help, run_from_argv, usage, validate

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  option_list = AppCommand.option_list+(make_option('--name', ac...
  help = """Creates a new study region from a shapefile containi...
  args = '[shapefile, manipulator]'

Inherited from django.core.management.base.BaseCommand: can_import_settings, output_transaction, requires_model_validation

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

handle(self, shapefile, manipulator, *args, **options)

source code 

The actual logic of the command. Subclasses must implement this method.

Overrides: django.core.management.base.BaseCommand.handle
(inherited documentation)

Class Variable Details [hide private]

option_list

Value:
AppCommand.option_list+(make_option('--name', action= 'store', dest= '\
region_name', default= False, help= 'Give a name to the manipulator, o\
therwise the name attribute from the shapefile will be used.'),)

help

Value:
"""Creates a new study region from a shapefile containing a single mul\
tigeometry.
            \n\tmanage.py create_manipulator_geom <path to shape> <mod\
ule name>.models.<manipulator model name>"""