Package madrona :: Package shapes :: Module forms :: Class UploadForm
[hide private]

Class UploadForm

source code

django.forms.Form --+
                    |
                   UploadForm

Instance Methods [hide private]
 
clean_file_obj(self) source code
 
handle(self, filefield_data)
Upload the file data, in chunks, to the SHP_UPLOAD_DIR specified in settings.py.
source code
 
write_file(self, filename, filefield_data) source code
 
check_zip_contents(self, ext, zip_file) source code
 
validate(self, filefield_data)
Validate the uploaded, zipped shapefile by unpacking to a temporary sandbox.
source code
Class Variables [hide private]
  file_obj = forms.FileField(label= _('Upload a Zipped Shapefile'))